diff --git a/src/GUI.cpp b/src/GUI.cpp index f9ed28a8c..46ce9d650 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -1093,7 +1093,7 @@ void GUI::deletePermanently(){ // Delete item from download list DLListModel->removeRow(sortedIndex.first); // Get handle and remove the torrent - QMap::iterator it = handles.find(fileName); + QHash::iterator it = handles.find(fileName); if(it != handles.end() && it.key() == fileName) { torrent_handle h = it.value(); savePath = QString::fromUtf8(h.save_path().string().c_str()); @@ -1164,7 +1164,7 @@ void GUI::deleteSelection(){ // Delete item from download list DLListModel->removeRow(sortedIndex.first); // Get handle and remove the torrent - QMap::iterator it = handles.find(fileName); + QHash::iterator it = handles.find(fileName); if(it != handles.end() && it.key() == fileName) { torrent_handle h = it.value(); s->remove_torrent(h); diff --git a/src/GUI.h b/src/GUI.h index cb4289612..6f030acd9 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -23,7 +23,7 @@ #define GUI_H #include -#include +#include #include #include #include @@ -63,10 +63,10 @@ class GUI : public QMainWindow, private Ui::MainWindow{ // Bittorrent session *s; std::pair listenPorts; - QMap handles; + QHash handles; QTimer *checkConnect; QTimer *timerScan; - QMap trackerErrors; + QHash trackerErrors; trackerLogin *tracker_login; QList > unauthenticated_trackers; downloadThread *downloader; @@ -90,7 +90,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ previewSelect *previewSelection; QProcess *previewProcess; // Search related - QMap searchResultsUrls; + QHash searchResultsUrls; QProcess *searchProcess; bool search_stopped; bool no_search_results;