diff --git a/rtgui/filepanel.cc b/rtgui/filepanel.cc index 22988d8e8..f65b3e0a7 100644 --- a/rtgui/filepanel.cc +++ b/rtgui/filepanel.cc @@ -69,7 +69,7 @@ FilePanel::FilePanel () : parent(NULL) { rightBox = Gtk::manage ( new Gtk::HBox () ); rightBox->set_size_request(50,100); rightNotebook = Gtk::manage ( new Gtk::Notebook () ); - rightNotebook->signal_switch_page().connect_notify( sigc::mem_fun(*this, &FilePanel::on_NB_switch_page) ); + rightNotebookSwitchConn = rightNotebook->signal_switch_page().connect_notify( sigc::mem_fun(*this, &FilePanel::on_NB_switch_page) ); //Gtk::VBox* taggingBox = Gtk::manage ( new Gtk::VBox () ); history = Gtk::manage ( new History (false) ); @@ -134,6 +134,7 @@ FilePanel::FilePanel () : parent(NULL) { } FilePanel::~FilePanel () { + rightNotebookSwitchConn.disconnect(); if (inspectorPanel) delete inspectorPanel; } diff --git a/rtgui/filepanel.h b/rtgui/filepanel.h index aab1d7168..07e6538ec 100755 --- a/rtgui/filepanel.h +++ b/rtgui/filepanel.h @@ -51,6 +51,7 @@ class FilePanel : public Gtk::HPaned, //FilterPanel* filterPanel; RTWindow* parent; Gtk::Notebook* rightNotebook; + sigc::connection rightNotebookSwitchConn; struct pendingLoad { bool complete;