summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-22 03:34:08 +0000
committerDavid Robillard <d@drobilla.net>2008-08-22 03:34:08 +0000
commit0a033e4ebda9ce67b2eb21a72d99c60412c3068c (patch)
tree4cfe7ce4c82ac6bbbc4f2c9c615cb15e2936f966
parent4637ceb876904731d2628563e96a89961f9b7781 (diff)
downloadpatchage-0a033e4ebda9ce67b2eb21a72d99c60412c3068c.tar.gz
patchage-0a033e4ebda9ce67b2eb21a72d99c60412c3068c.tar.bz2
patchage-0a033e4ebda9ce67b2eb21a72d99c60412c3068c.zip
Fix initial state of (View->Projects) menu item.
Deactivate and desensitize (View->Projects) menu item when LASH D-BUS support isn't present. git-svn-id: http://svn.drobilla.net/lad/patchage@1463 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/Patchage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 8b222db..278670b 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -178,8 +178,11 @@ Patchage::Patchage(int argc, char** argv)
#ifdef HAVE_DBUS
_menu_open_session->signal_activate().connect(
sigc::mem_fun(this, &Patchage::show_load_project_dialog));
+ _menu_view_projects->set_active(true);
#else
_menu_open_session->set_sensitive(false);
+ _menu_view_projects->set_active(false);
+ _menu_view_projects->set_sensitive(false);
#endif
#ifdef HAVE_ALSA