From 4b9f69a66694ac9720eb1fb5132a8c09e1ba6f92 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 18 Jul 2015 13:23:12 +0200 Subject: [PATCH] Fixes #2160 --- companion/src/mainwindow.cpp | 7 ------- companion/src/mainwindow.h | 1 - 2 files changed, 8 deletions(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 2388c49be..8231c3ba7 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -123,7 +123,6 @@ MainWindow::MainWindow(): } QTimer::singleShot(updateDelay, this, SLOT(doAutoUpdates())); QTimer::singleShot(updateDelay, this, SLOT(displayWarnings())); - updateSdsyncAction(); QStringList strl = QApplication::arguments(); QString str; @@ -897,12 +896,6 @@ void MainWindow::about() msgBox.exec(); } -void MainWindow::updateSdsyncAction() -{ - QTimer::singleShot(1000, this, SLOT(updateSdsyncAction())); - sdsyncAct->setEnabled(!findMassstoragePath("SOUNDS").isEmpty()); -} - void MainWindow::updateMenus() { bool hasMdiChild = (activeMdiChild() != 0); diff --git a/companion/src/mainwindow.h b/companion/src/mainwindow.h index 0bd139715..a4568afe3 100644 --- a/companion/src/mainwindow.h +++ b/companion/src/mainwindow.h @@ -156,7 +156,6 @@ class MainWindow : public QMainWindow void loadBackup(); void appPrefs(); void fwPrefs(); - void updateSdsyncAction(); void updateMenus(); void createProfile(); MdiChild *createMdiChild();