Replace the DirBrowserRemoteInterface by slots to reduce coupling by using ad-hoc yet type-safe collaborations.

This commit is contained in:
Adam Reichold
2015-12-05 11:45:15 +01:00
parent 87016d353a
commit 4f68e370d4
9 changed files with 42 additions and 64 deletions

View File

@@ -22,7 +22,7 @@
using namespace rtengine;
RecentBrowser::RecentBrowser () : listener (NULL)
RecentBrowser::RecentBrowser ()
{
recentDirs = Gtk::manage (new MyComboBoxText ());
@@ -46,8 +46,8 @@ void RecentBrowser::selectionChanged ()
Glib::ustring sel = recentDirs->get_active_text ();
if (sel != "" && listener) {
listener->selectDir (sel);
if (!sel.empty() && selectDir) {
selectDir (sel);
}
}