summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-29 11:34:06 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:55 -0500
commit4d269c2e1a625e6d50b7e6272b4f474a921c6bfa (patch)
treecd43db6b19152e98dd219de3350f8dbe6911662d /src/mainwindow.cpp
parent8c72077febaea485200adcf1e9f615902e930def (diff)
split to processrunner
added IUserInterface::qtWidget() put back IUserInterface in OrganizerCore now that there's a way to get the widget
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index bbb63333..ce5280a6 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1312,7 +1312,7 @@ bool MainWindow::canExit()
}
m_exitAfterWait = true;
- m_OrganizerCore.waitForAllUSVFSProcessesWithLock();
+ m_OrganizerCore.processRunner().waitForAllUSVFSProcessesWithLock();
if (!m_exitAfterWait) { // if operation cancelled
return false;
}
@@ -1536,7 +1536,7 @@ void MainWindow::startExeAction()
}
action->setEnabled(false);
- m_OrganizerCore.runExecutable(*itor);
+ m_OrganizerCore.processRunner().runExecutable(*itor);
action->setEnabled(true);
}
@@ -2294,6 +2294,11 @@ void MainWindow::unlock()
}
}
+QWidget* MainWindow::qtWidget()
+{
+ return this;
+}
+
void MainWindow::on_btnRefreshData_clicked()
{
m_OrganizerCore.refreshDirectoryStructure();
@@ -2363,7 +2368,7 @@ void MainWindow::on_startButton_clicked()
forcedLibraries.clear();
}
- m_OrganizerCore.runExecutableFile(
+ m_OrganizerCore.processRunner().runExecutableFile(
selectedExecutable->binaryInfo(),
selectedExecutable->arguments(),
selectedExecutable->workingDirectory().length() != 0 ?
@@ -5453,7 +5458,7 @@ void MainWindow::openDataFile()
const QString path = m_ContextItem->data(0, Qt::UserRole).toString();
const QFileInfo targetInfo(path);
- m_OrganizerCore.runFile(this, targetInfo);
+ m_OrganizerCore.processRunner().runFile(this, targetInfo);
}
void MainWindow::openDataOriginExplorer_clicked()