1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationCompleterView: No need to use QPointer for SearchEnginesDialog

This commit is contained in:
David Rosca 2018-01-25 11:42:20 +01:00
parent b618323a5e
commit fe8eb7f122
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 2 additions and 10 deletions

View File

@ -347,11 +347,6 @@ void LocationCompleterView::close()
void LocationCompleterView::openSearchEnginesDialog()
{
if (!m_searchDialog) {
m_searchDialog = new SearchEnginesDialog(this);
}
m_searchDialog->open();
m_searchDialog->raise();
m_searchDialog->activateWindow();
SearchEnginesDialog *dialog = new SearchEnginesDialog(focusProxy());
dialog->open();
}

View File

@ -18,12 +18,10 @@
#ifndef LOCATIONCOMPLETERVIEW_H
#define LOCATIONCOMPLETERVIEW_H
#include <QPointer>
#include <QListView>
#include "qzcommon.h"
class SearchEnginesDialog;
class LocationCompleterDelegate;
class FALKON_EXPORT LocationCompleterView : public QWidget
@ -64,7 +62,6 @@ private:
QListView *m_view;
LocationCompleterDelegate *m_delegate;
QPointer<SearchEnginesDialog> m_searchDialog;
};
#endif // LOCATIONCOMPLETERVIEW_H