Commit 1ba84ea5 authored by schultz's avatar schultz
Browse files

added parent Widget parameter to VSI selection widget, as creating a

dialog without parent seems to be blocking in windows. nesting parentless
dialogs then causes the root dialog to keep focus while the nested dialog
is on top
parent 0ad773b6
......@@ -183,7 +183,7 @@ void ObjectIdWidget::toDefault()
void ObjectIdWidget::showPickDialog()
ObjectPickDialog d(flags_, types_, withGroups_);
ObjectPickDialog d(this, flags_, types_, withGroups_);
d.selectedId (combo_->itemData (combo_->currentIndex()).toInt ());
if (d.exec () == QDialog::Accepted)
......@@ -70,8 +70,8 @@ namespace VSI {
/// Constructor
ObjectPickDialog::ObjectPickDialog(QStringList _flags, QStringList _types, bool _withGroups) :
QDialog (),
ObjectPickDialog::ObjectPickDialog(QWidget* parent, QStringList _flags, QStringList _types, bool _withGroups) :
QDialog (parent),
QHBoxLayout *hL = new QHBoxLayout;
......@@ -78,7 +78,7 @@ class ObjectPickDialog : public QDialog {
/// Constructor
ObjectPickDialog (QStringList _flags, QStringList _types, bool _withGroups);
ObjectPickDialog (QWidget* parent, QStringList _flags, QStringList _types, bool _withGroups);
/// Destructor
~ObjectPickDialog ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment