diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-07-09 14:31:44 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-07-09 21:39:41 +0000 |
commit | da3634a01f70d5f31182fe8363ac7285992ede2e (patch) | |
tree | c787d8126fd1cbeeb82b0fe4b602040b55234c4c /ui/qt/wireshark_application.h | |
parent | cdc1c16bb72ef4dc2044068ff9555e1a866e60c4 (diff) | |
download | wireshark-da3634a01f70d5f31182fe8363ac7285992ede2e.tar.gz |
Fix a "recent items" crash.
Use a QMutableListIterator instead of a foreach loop so that we can
safely remove items from a list.
While we're here, make sure that RecentFileStatus threads use a
Qt::QueuedConnection when emitting signals across threads and try to
isolate the filename string.
Change-Id: I3fbb65a1727133f4557026decab5084a3faec2d4
Reviewed-on: https://code.wireshark.org/review/2966
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index 0c78055982..120d552bce 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -132,7 +132,7 @@ public slots: private slots: void cleanup(); - void itemStatusFinished(const QString &filename = "", qint64 size = 0, bool accessible = false); + void itemStatusFinished(const QString filename = "", qint64 size = 0, bool accessible = false); void refreshRecentFiles(void); void updateTaps(); }; |