summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/browsedirtree.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-08-07 17:49:35 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-08-07 17:49:35 +0000
commit2ee205ae0de2c8dc6db150465175e737cfa79784 (patch)
tree3c7da4b2fca32b6d37a19ec95ea919bacd14dae5 /rbutil/rbutilqt/browsedirtree.cpp
parent3a4e540c3db4309990965455b0686230345be002 (diff)
downloadrockbox-2ee205ae0de2c8dc6db150465175e737cfa79784.tar.gz
rockbox-2ee205ae0de2c8dc6db150465175e737cfa79784.tar.bz2
rockbox-2ee205ae0de2c8dc6db150465175e737cfa79784.zip
rbutilqt: use the new dirbrowser in the talkfile generation. Also little changes to the dirbrowser to run it statically and without signals.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14234 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/browsedirtree.cpp')
-rw-r--r--rbutil/rbutilqt/browsedirtree.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.cpp b/rbutil/rbutilqt/browsedirtree.cpp
index 0899ab103f..e100dfa41f 100644
--- a/rbutil/rbutilqt/browsedirtree.cpp
+++ b/rbutil/rbutilqt/browsedirtree.cpp
@@ -65,6 +65,14 @@ void BrowseDirtree::accept()
this->close();
emit itemChanged(path);
+ setResult(QDialog::Accepted);
+}
+
+QString BrowseDirtree::getSelected()
+{
+ QString path;
+ path = model.filePath(ui.tree->currentIndex());
+ return path;
}