Skip to content

Commit

Permalink
fix: stop crashing when closing the program
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Feb 16, 2024
1 parent 84b6896 commit c97aae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/gui/src/tabs/tag-tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ TagTab::TagTab(Profile *profile, DownloadQueue *downloadQueue, MainWindow *paren

TagTab::~TagTab()
{
close();
delete ui;
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/src/ui/qclosabletabwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bool QClosableTabWidget::eventFilter(QObject *o, QEvent *e)

// Non-closable tabs have a maximum width of 16777214 (default: 16777215)
if (tab != nullptr && !tab->isLocked() && w->maximumWidth() != 16777214) {
w->deleteLater();
w->close();
removeTab(index);
return true;
}
Expand Down

0 comments on commit c97aae3

Please sign in to comment.