summaryrefslogtreecommitdiff
path: root/ui/qt/wireshark_application.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-07-09 14:31:44 -0700
committerGerald Combs <gerald@wireshark.org>2014-07-09 21:39:41 +0000
commitda3634a01f70d5f31182fe8363ac7285992ede2e (patch)
treec787d8126fd1cbeeb82b0fe4b602040b55234c4c /ui/qt/wireshark_application.h
parentcdc1c16bb72ef4dc2044068ff9555e1a866e60c4 (diff)
downloadwireshark-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.h2
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();
};