summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 27c3345..9804e94 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -94,6 +94,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
splash.showMessage(tr("Creating Random Browser..."), Qt::AlignHCenter, Qt::yellow);
qApp->processEvents();
mRandomTab = new RandomTab;
+ connect(mRandomTab, SIGNAL(configure()), this, SLOT(configure()));
mTab->addTab(mRandomTab, tr("Random"));
//newmoviewizard + dbanalyzer + newpicsdialog + searchdialog
@@ -205,6 +206,7 @@ void SheMov::tabChanged(int newTab){
mNewPicsA->setEnabled(newTab == FileManager);
mNewMovieWizardA->setEnabled(newTab == FileManager);
mArchiveBrowserViewMenuA->setVisible(newTab == ArchiveBrowserTab);
+ mRandomEditMenuA->setVisible(newTab == RandomDisp);
statusbarMessage(QString());
ArchiveController *c = SmGlobals::instance()->archiveController();
switch(newTab){
@@ -940,6 +942,10 @@ void SheMov::createMenus(){
mArchiveEditMenu->addMenu(archiveTreeM);
mArchiveEditMenu->addMenu(archiveFilesM);
+
+ // Random
+ mRandomEditMenu = mRandomTab->editMenu();
+ mRandomEditMenuA = menuBar()->insertMenu(mArchiveMenuA, mRandomEditMenu);
}
void SheMov::createOpenWithMenuFS(){