Skip to content

Commit

Permalink
Fix the issue: regression since v2.1.9: nixnote2
Browse files Browse the repository at this point in the history
no longer exiting cleanly (terminated by SIGABRT) robert7#208
  • Loading branch information
boo-yee authored and charlescanato committed Oct 24, 2023
1 parent b3b035f commit 49cc8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/gui/nbrowserwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ NBrowserWindow::NBrowserWindow(QWidget *parent) :
NBrowserWindow::~NBrowserWindow() {
browserThread->quit();
while (!browserRunner->isIdle);
while (!browserThread->isFinished());

delete browserThread;
delete browserRunner;
Expand Down
5 changes: 1 addition & 4 deletions src/nixnote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ NixNote::NixNote(QWidget *parent) : QMainWindow(parent) {

// Destructor to call when all done
NixNote::~NixNote() {
QLOG_DEBUG() << "~NixNote: Closing threads";
syncThread.quit();
indexThread.quit();
counterThread.quit();
Expand Down Expand Up @@ -1299,10 +1300,6 @@ void NixNote::saveOnExit() {
saveNoteColumnPositions();
noteTableView->saveColumnsVisible();

QLOG_DEBUG() << "saveOnExit: Closing threads";
indexThread.quit();
counterThread.quit();

QLOG_DEBUG() << "Exiting saveOnExit()";
}

Expand Down

0 comments on commit 49cc8dc

Please sign in to comment.