1
0
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:
Arnaud Bienner 2011-02-16 23:03:00 +00:00
parent 375abfd04e
commit 0f1a1cc332

View File

@ -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();
}
} }