void MainWindow::createActions() {
- QMap<QString, QAction*> *actions = The::globalActions();
+ QHash<QString, QAction*> *actions = The::globalActions();
stopAct = new QAction(Utils::icon("media-playback-stop"), tr("&Stop"), this);
stopAct->setStatusTip(tr("Stop playback and go back to the search view"));
void MainWindow::createMenus() {
- QMap<QString, QMenu*> *menus = The::globalMenus();
+ QHash<QString, QMenu*> *menus = The::globalMenus();
fileMenu = menuBar()->addMenu(tr("&Application"));
#ifdef APP_ACTIVATION
}
setDefinitionMode(settings.value("definition", VideoDefinition::getDefinitionNames().first()).toString());
audioOutput->setVolume(settings.value("volume", 1).toDouble());
- audioOutput->setMuted(settings.value("volumeMute").toBool());
+ // audioOutput->setMuted(settings.value("volumeMute").toBool());
The::globalActions()->value("manualplay")->setChecked(settings.value("manualplay", false).toBool());
}
The::globalActions()->value("previous")->setEnabled(false);
The::globalActions()->value("download")->setEnabled(false);
The::globalActions()->value("stopafterthis")->setEnabled(false);
+ The::globalActions()->value("related-videos")->setEnabled(false);
}
The::globalActions()->value("twitter")->setEnabled(isMediaView);
#ifdef APP_SIMPLEUPDATE
simpleUpdateDialog(version);
-#endif
-#if defined(APP_ACTIVATION) && !defined(APP_MAC)
+#elif defined(APP_ACTIVATION) && !defined(APP_MAC)
UpdateDialog *dialog = new UpdateDialog(version, this);
dialog->show();
#endif