Fix a couple of warnings

This commit is contained in:
David Sansome 2010-04-21 20:57:54 +00:00
parent 174d66f30f
commit 449de3f34a
2 changed files with 5 additions and 3 deletions

View File

@ -115,10 +115,12 @@ int main(int argc, char *argv[]) {
return 1;
if (a.isRunning()) {
if (options.is_empty())
if (options.is_empty()) {
qDebug() << "Clementine is already running - activating existing window";
if (a.sendMessage(options.Serialize()))
}
if (a.sendMessage(options.Serialize())) {
return 0;
}
// Couldn't send the message so start anyway
}

View File

@ -133,7 +133,7 @@ void SettingsDialog::accept() {
#endif
// Notifications
OSD::Behaviour osd_behaviour;
OSD::Behaviour osd_behaviour = OSD::Disabled;
if (ui_.notifications_none->isChecked()) osd_behaviour = OSD::Disabled;
else if (ui_.notifications_native->isChecked()) osd_behaviour = OSD::Native;
else if (ui_.notifications_tray->isChecked()) osd_behaviour = OSD::TrayPopup;