Skip to content

Commit

Permalink
Close server before shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellMorgenstern committed Dec 12, 2023
1 parent 222e644 commit 71a9d9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/fapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,6 @@ void FApplication::closeAllWindows2() {
(SvgIconWidget has been rewritten)
*/


// this code modified from QApplication::closeAllWindows()


Expand Down Expand Up @@ -2039,6 +2038,9 @@ void FApplication::doCommand(const QString & command, const QString & params, QS

QString error;
if (command == "shutdown") {
if (m_fServer) {
m_fServer->close();
}
closeAllWindows2();
}
else if (command.startsWith("svg")) {
Expand Down Expand Up @@ -2087,6 +2089,9 @@ void FApplication::doCommand(const QString & command, const QString & params, QS
}
}
} else if (command.startsWith("all")) {
if (m_fServer) {
m_fServer->close();
}
error = runExportAllPlusSvgServiceAux();
QStringList nameFilters;
nameFilters << ("*.ipc");
Expand Down

0 comments on commit 71a9d9e

Please sign in to comment.