mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
LocationCompleterView: No need to use QPointer for SearchEnginesDialog
This commit is contained in:
parent
b618323a5e
commit
fe8eb7f122
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user