summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/browsedirtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/browsedirtree.cpp')
-rw-r--r--rbutil/rbutilqt/browsedirtree.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.cpp b/rbutil/rbutilqt/browsedirtree.cpp
index 59c4cef9f4..c2441f27cd 100644
--- a/rbutil/rbutilqt/browsedirtree.cpp
+++ b/rbutil/rbutilqt/browsedirtree.cpp
@@ -23,7 +23,7 @@
#include "ui_browsedirtreefrm.h"
-BrowseDirtree::BrowseDirtree(QWidget *parent) : QDialog(parent)
+BrowseDirtree::BrowseDirtree(QWidget *parent, const QString &caption) : QDialog(parent)
{
ui.setupUi(this);
this->setModal(true);
@@ -31,6 +31,9 @@ BrowseDirtree::BrowseDirtree(QWidget *parent) : QDialog(parent)
model.setReadOnly(true);
model.setSorting(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase);
+ if(caption!="")
+ setWindowTitle(caption);
+
// disable size / date / type columns
ui.tree->setColumnHidden(1, true);
ui.tree->setColumnHidden(2, true);