Skip to content

Commit

Permalink
Merge pull request #11 from fehlix/master
Browse files Browse the repository at this point in the history
fix doubled command within QProcess::execute
  • Loading branch information
fehlix authored Dec 15, 2024
2 parents f14f9f1 + 37fbc40 commit a50a3a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mx-tools (24.12.01) mx; urgency=medium

* Fix doubled command within QProcess::execute call.

-- fehlix <[email protected]> Sun, 15 Dec 2024 08:53:07 -0400

mx-tools (24.10.01) mx; urgency=medium

* Fix sed command for hiding icons
Expand Down
6 changes: 4 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,13 @@ void MainWindow::btn_clicked()
{
hide();
QStringList cmdList = QProcess::splitCommand(sender()->objectName());
QString command = cmdList.first();
cmdList.removeFirst();
if (cmdList.last() == "&") {
cmdList.removeLast();
QProcess::startDetached(cmdList.first(), cmdList);
QProcess::startDetached(command, cmdList);
} else {
QProcess::execute(cmdList.first(), cmdList);
QProcess::execute(command, cmdList);
}
show();
}
Expand Down

0 comments on commit a50a3a3

Please sign in to comment.