From 8c93b29737c5b6bc368954a1b4fc0bee1771258d Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Wed, 30 Sep 2015 10:20:33 +0100 Subject: [PATCH] GUI: Fix invalid selection mode in PropertyPathItem::createEeditor Signed-off-by: Przemo Firszt --- src/Gui/propertyeditor/PropertyItem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 6a0f7c49c..e9e3568c5 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -2151,6 +2151,7 @@ QVariant PropertyPathItem::toolTip(const App::Property* prop) const QWidget* PropertyPathItem::createEditor(QWidget* parent, const QObject* receiver, const char* method) const { Gui::FileChooser *fc = new Gui::FileChooser(parent); + fc->setMode(FileChooser::Directory); fc->setAutoFillBackground(true); QObject::connect(fc, SIGNAL(fileNameSelected(const QString&)), receiver, method); return fc;