From 28a02ac93b95d0c351b02eb32b8deab6500e4d98 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 27 Jul 2018 21:25:21 +0400 Subject: [PATCH] Use file selection dialogue result (bug #4524) --- apps/launcher/advancedpage.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/launcher/advancedpage.cpp b/apps/launcher/advancedpage.cpp index b0a35f0a5..3a4c50e9d 100644 --- a/apps/launcher/advancedpage.cpp +++ b/apps/launcher/advancedpage.cpp @@ -43,7 +43,6 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked() QDir::currentPath(), QString(tr("Text file (*.txt)"))); - if (scriptFile.isEmpty()) return; @@ -53,7 +52,7 @@ void Launcher::AdvancedPage::on_runScriptAfterStartupBrowseButton_clicked() return; const QString path(QDir::toNativeSeparators(info.absoluteFilePath())); - + runScriptAfterStartupField->setText(path); } bool Launcher::AdvancedPage::loadSettings() @@ -168,4 +167,4 @@ void Launcher::AdvancedPage::saveSettingBool(QCheckBox *checkbox, const std::str void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames) { loadCellsForAutocomplete(cellNames); -} \ No newline at end of file +}