summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-07 18:24:41 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-15 14:40:39 -0400
commit617a6005451aba1d45f13228f13f1cc150a78bb4 (patch)
tree865a38cea724ba1bb969639d69177677924440c8 /src/mainwindow.cpp
parent26786da96d37914ca91eff633de751acf1a3b9d8 (diff)
ExecutablesList:
- merged addExecutable(), updateExecutable() and addExecutableInternal() into a new setExecutable() - setExecutable() adds the executable to the list if not found, or forwards to Executable::mergeFrom() - mergeFrom() handles merging from/to plugin executables
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2fbdbec7..926ba43c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5507,12 +5507,10 @@ void MainWindow::addAsExecutable()
if (!name.isEmpty()) {
//Note: If this already exists, you'll lose custom settings
- m_OrganizerCore.executablesList()->addExecutable(name,
- binaryInfo.absoluteFilePath(),
- arguments,
- targetInfo.absolutePath(),
- QString(),
- Executable::CustomExecutable);
+ m_OrganizerCore.executablesList()->setExecutable({
+ name, binaryInfo, arguments, targetInfo.absolutePath(), QString(),
+ Executable::CustomExecutable});
+
refreshExecutablesList();
}