- Fix possible crash in search field autocompletion

- Optimized autocompletion code
This commit is contained in:
Christophe Dumez
2009-11-14 20:24:39 +00:00
parent a4383d1b7f
commit 9fbe2ff6c4
2 changed files with 13 additions and 18 deletions

View File

@@ -37,6 +37,7 @@
#include <QList>
#include <QPair>
#include <QPointer>
#include <QStringListModel>
#include "ui_search.h"
#include "engineSelectDlg.h"
#include "SearchTab.h"
@@ -60,7 +61,7 @@ private:
QByteArray search_result_line_truncated;
unsigned long nb_search_results;
QPointer<QCompleter> searchCompleter;
QStringList searchHistory;
QStringListModel searchHistory;
bittorrent *BTSession;
QSystemTrayIcon *myTrayIcon;
bool systrayIntegration;