summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 17:36:41 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 17:36:41 +0200
commitceda77eb38f0b0824f03348f5291e3a42d8f7306 (patch)
tree16682304793c6eb75c8e1c6bb37dc6d468503b1a /plugingui
parent9555c6e2734977c82023907f82a3ae82f845720a (diff)
Add support for referenced files through refs.conf.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/filebrowser.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index 6ecbc09..f025c25 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -160,6 +160,15 @@ static void handleKeyEvent(void *ptr) {
lb->clearSelectedValue();
GUI::LineEdit *le = prv->lineedit;
+ std::string value = le->text();
+ if(value.size() > 1 && value[0] == '@') {
+ DEBUG(filebrowser, "Selecting ref-file '%s'\n", value.c_str());
+ if(prv->filesel_handler) {
+ prv->filesel_handler(prv->ptr, value);
+ }
+ return;
+ }
+
prv->dir->setPath(le->text());
changeDir(ptr);
}