mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
Corrected regression introduced in r2826: exit application when nothing is playing
This commit is contained in:
parent
375abfd04e
commit
0f1a1cc332
@ -1755,9 +1755,11 @@ bool MainWindow::winEvent(MSG* msg, long*) {
|
|||||||
void MainWindow::Exit() {
|
void MainWindow::Exit() {
|
||||||
// To shut down the application when fadeout will be finished
|
// To shut down the application when fadeout will be finished
|
||||||
connect(player_->engine(), SIGNAL(FadeoutFinishedSignal()), qApp, SLOT(quit()));
|
connect(player_->engine(), SIGNAL(FadeoutFinishedSignal()), qApp, SLOT(quit()));
|
||||||
|
if(player_->GetState() == Engine::Playing) {
|
||||||
player_->Stop();
|
player_->Stop();
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
tray_icon_->SetVisible(false);
|
tray_icon_->SetVisible(false);
|
||||||
|
} else {
|
||||||
|
qApp->quit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user