diff options
-rw-r--r-- | plugingui/plugingui.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugingui/plugingui.cc b/plugingui/plugingui.cc index 5b2f2e3..9de7c94 100644 --- a/plugingui/plugingui.cc +++ b/plugingui/plugingui.cc @@ -132,7 +132,10 @@ static void kitBrowseClick(void *ptr) { PluginGUI *gui = (PluginGUI*)ptr; - fb->setPath(gui->lineedit->text()); + std::string path = gui->lineedit->text(); + if(path == "") path = gui->lineedit2->text(); + + fb->setPath(path); fb->registerFileSelectHandler(selectKitFile, gui); fb->show(); } @@ -161,7 +164,10 @@ static void midimapBrowseClick(void *ptr) { PluginGUI *gui = (PluginGUI*)ptr; - fb->setPath(gui->lineedit2->text()); + std::string path = gui->lineedit2->text(); + if(path == "") path = gui->lineedit->text(); + + fb->setPath(path); fb->registerFileSelectHandler(selectMapFile, gui); fb->show(); } |