Skip to content

Commit

Permalink
close window instead of hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 17, 2024
1 parent 0414e4b commit a48c7b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/BigPictureTV/bigpicturetv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ void BigPictureTV::toggleMenubarVisibility()
this->adjustSize();
}

void BigPictureTV::closeEvent(QCloseEvent *event)
{
hide();
event->ignore();
}

void BigPictureTV::showSettings()
{
this->show();
Expand Down
1 change: 0 additions & 1 deletion src/BigPictureTV/bigpicturetv.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ private slots:
void setFont();

protected:
void closeEvent(QCloseEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;

};
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ int main(int argc, char *argv[])
a.installTranslator(&translator);
}
a.setStyle("fusion");
a.setQuitOnLastWindowClosed(false);
BigPictureTV w;
QObject::connect(&a, &QApplication::aboutToQuit, [&sharedMemory]() { sharedMemory.detach(); });

Expand Down

0 comments on commit a48c7b1

Please sign in to comment.