minor change
This commit is contained in:
parent
7b5fa255da
commit
8ea94b3e26
|
@ -3899,7 +3899,9 @@ void Settings::Environment::doSave()
|
||||||
saveValue("current_folder",mCurrentFolder);
|
saveValue("current_folder",mCurrentFolder);
|
||||||
saveValue("default_open_folder",mDefaultOpenFolder);
|
saveValue("default_open_folder",mDefaultOpenFolder);
|
||||||
QString terminalPath = mTerminalPath;
|
QString terminalPath = mTerminalPath;
|
||||||
terminalPath.replace(pSettings->dirs().appDir(), "%*APP_DIR*%");
|
if (terminalPath.startsWith(pSettings->dirs().appDir())) {
|
||||||
|
terminalPath="%*APP_DIR*%"+terminalPath.mid(pSettings->dirs().appDir().length());
|
||||||
|
}
|
||||||
|
|
||||||
saveValue("terminal_path",terminalPath);
|
saveValue("terminal_path",terminalPath);
|
||||||
saveValue("terminal_arguments_pattern",mTerminalArgumentsPattern);
|
saveValue("terminal_arguments_pattern",mTerminalArgumentsPattern);
|
||||||
|
|
Loading…
Reference in New Issue