Use file selection dialogue result (bug #4524)

fix/skillcap
Andrei Kortunov 7 years ago
parent b7c159e5b6
commit 28a02ac93b

@ -43,7 +43,6 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked()
QDir::currentPath(), QDir::currentPath(),
QString(tr("Text file (*.txt)"))); QString(tr("Text file (*.txt)")));
if (scriptFile.isEmpty()) if (scriptFile.isEmpty())
return; return;
@ -53,7 +52,7 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked()
return; return;
const QString path(QDir::toNativeSeparators(info.absoluteFilePath())); const QString path(QDir::toNativeSeparators(info.absoluteFilePath()));
runScriptAfterStartupField->setText(path);
} }
bool Launcher::AdvancedPage::loadSettings() bool Launcher::AdvancedPage::loadSettings()
@ -168,4 +167,4 @@ void Launcher::AdvancedPage::saveSettingBool(QCheckBox *checkbox, const std::str
void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames) void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames)
{ {
loadCellsForAutocomplete(cellNames); loadCellsForAutocomplete(cellNames);
} }

Loading…
Cancel
Save