GUI: Fix invalid selection mode in PropertyPathItem::createEeditor

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-09-30 10:20:33 +01:00 committed by wmayer
parent e416ec0dc3
commit 8c93b29737

View File

@ -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;