diff --git a/src/Gui/LTMSidebar.cpp b/src/Gui/LTMSidebar.cpp index aec36a67c..6b6447c4c 100644 --- a/src/Gui/LTMSidebar.cpp +++ b/src/Gui/LTMSidebar.cpp @@ -724,7 +724,7 @@ LTMSidebar::eventPopup() void LTMSidebar::manageFilters() { - EditNamedSearches *editor = new EditNamedSearches(parentWidget(), context); + EditNamedSearches *editor = new EditNamedSearches(context->mainWindow, context); editor->move(QCursor::pos()+QPoint(10,-200)); editor->show(); } diff --git a/src/Gui/SearchBox.cpp b/src/Gui/SearchBox.cpp index 83d9ac0a4..7b82d0ca2 100644 --- a/src/Gui/SearchBox.cpp +++ b/src/Gui/SearchBox.cpp @@ -354,7 +354,7 @@ void SearchBox::runMenu(QAction *x) if (x->text() == tr("Add to Named Filters")) addNamed(); else if (x->text() == tr("Manage Filters")) { - EditNamedSearches *editor = new EditNamedSearches(parent->parentWidget(), context); + EditNamedSearches *editor = new EditNamedSearches(context->mainWindow, context); editor->move(QCursor::pos() - QPoint(460, -5)); editor->show();