summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-12-21 17:54:10 +0000
committerFlorian Jung <flo@windfisch.org>2011-12-21 17:54:10 +0000
commit1fe51e45eebbfc2ac198ed4778c9afdb9eaf2ed0 (patch)
tree3d976c7966bec1f4d534a6281713ff36ec9cd3e8 /muse2/muse/app.cpp
parentc36a5508aa42e596b005425208054af9a60734b4 (diff)
merged again
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 148f3072..4fd01bf7 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -327,7 +327,7 @@ MusE::MusE(int /*argc*/, char** /*argv*/) : QMainWindow()
mixer2 = 0;
watchdogThread = 0;
editInstrument = 0;
- routingPopupMenu = 0;
+ //routingPopupMenu = 0;
progress = 0;
activeTopWin = NULL;
currentMenuSharingTopwin = NULL;
@@ -1620,18 +1620,6 @@ void MusE::closeEvent(QCloseEvent* event)
printf("MusE: Exiting Metronome\n");
MusECore::exitMetronome();
- // Make sure to delete the menu. ~routingPopupMenu() will NOT be called automatically.
- // Even though it is a child of MusE, it just passes MusE onto the underlying PopupMenus.
- if(routingPopupMenu)
- delete routingPopupMenu;
- #if 0
- if(routingPopupView)
- {
- routingPopupView->clear();
- delete routingPopupView;
- }
- #endif
-
MusEGlobal::song->cleanupForQuit();
// Give midi devices a chance to close first, above in cleanupForQuit.
@@ -1802,18 +1790,20 @@ void MusE::showTransport(bool flag)
viewTransportAction->setChecked(flag);
}
+/*
//---------------------------------------------------------
// getRoutingPopupMenu
// Get the special common routing popup menu. Used (so far)
// by audio strip, midi strip, and midi trackinfo.
//---------------------------------------------------------
-MusEGui::RoutePopupMenu* MusE::getRoutingPopupMenu()
+MusEGui::RoutePopupMenu* MusE::()
{
if(!routingPopupMenu)
routingPopupMenu = new MusEGui::RoutePopupMenu(this);
return routingPopupMenu;
}
+*/
//---------------------------------------------------------
// saveAs
@@ -2493,7 +2483,8 @@ void MusE::changeConfig(bool writeFlag)
//loadStyleSheetFile(MusEGlobal::config.styleSheetFile);
loadTheme(MusEGlobal::config.style);
QApplication::setFont(MusEGlobal::config.fonts[0]);
- loadStyleSheetFile(MusEGlobal::config.styleSheetFile);
+ if(!MusEGlobal::config.styleSheetFile.isEmpty())
+ loadStyleSheetFile(MusEGlobal::config.styleSheetFile);
emit configChanged();
updateConfiguration();