--- include/Win_GParted.h.refresh 2008-11-29 18:55:38.000000000 +0100 +++ include/Win_GParted.h 2009-01-10 04:27:38.000000000 +0100 @@ -239,6 +239,7 @@ unsigned short new_count;//new_count keeps track of the new created partitions FS fs ; bool OPERATIONSLIST_OPEN ; + sigc::connection combo_devices_signal_changed_id ; GParted_Core gparted_core ; std::vector<Gtk::Label *> device_info ; --- src/Win_GParted.cc.refresh 2008-11-29 18:55:38.000000000 +0100 +++ src/Win_GParted.cc 2009-01-10 04:27:38.000000000 +0100 @@ -280,7 +280,8 @@ combo_devices .pack_start( treeview_devices_columns .device ) ; combo_devices .pack_start( treeview_devices_columns .size, false ) ; - combo_devices .signal_changed() .connect( sigc::mem_fun(*this, &Win_GParted::combo_devices_changed) ); + combo_devices_signal_changed_id = + combo_devices .signal_changed() .connect( sigc::mem_fun(*this, &Win_GParted::combo_devices_changed) ); hbox_toolbar .pack_start( combo_devices, Gtk::PACK_SHRINK ) ; } @@ -527,6 +528,7 @@ void Win_GParted::refresh_combo_devices() { + combo_devices_signal_changed_id .block() ; liststore_devices ->clear() ; menu = manage( new Gtk::Menu() ) ; @@ -563,6 +565,7 @@ menubar_main .items()[ 0 ] .get_submenu() ->items()[ 1 ] .set_submenu( *menu ) ; } + combo_devices_signal_changed_id .unblock() ; combo_devices .set_active( current_device ) ; }