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());
}
copyPageAct->setEnabled(isMediaView);
copyLinkAct->setEnabled(isMediaView);
findVideoPartsAct->setEnabled(isMediaView);
- The::globalActions()->value("related-videos")->setEnabled(isMediaView);
toolbarSearch->setEnabled(widget == homeView || isMediaView || widget == downloadView);
if (widget == homeView) {
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("refine-search")->setEnabled(false);
}
The::globalActions()->value("twitter")->setEnabled(isMediaView);
searchView->updateRecentKeywords();
searchView->updateRecentChannels();
}
+ QAbstractNetworkCache *cache = The::networkAccessManager()->cache();
+ if (cache) cache->clear();
showMessage(tr("Your privacy is now safe"));
}
#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