Qt: Show our recent files earlier.

Show the recent file list before it's been scanned so that the welcome
screen layout will be complete by the time we're done initializing.

Change-Id: I09f0a68c6d36f30e7cdb2958f82af38f52444c34
Reviewed-on: https://code.wireshark.org/review/24849
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2017-12-15 15:35:29 -08:00
parent 3071356d9e
commit 15a97b5986
1 changed files with 11 additions and 5 deletions

View File

@ -739,12 +739,18 @@ void WiresharkApplication::itemStatusFinished(const QString filename, qint64 siz
recent_item_status *ri;
foreach (ri, recent_captures_) {
if (filename == ri->filename && (size != ri->size || accessible != ri->accessible)) {
ri->size = size;
ri->accessible = accessible;
ri->in_thread = false;
if (filename == ri->filename) {
bool do_emit = isInitialized() == false;
if (size != ri->size || accessible != ri->accessible) {
ri->size = size;
ri->accessible = accessible;
ri->in_thread = false;
do_emit = true;
}
emit updateRecentCaptureStatus(filename, size, accessible);
if (do_emit) {
emit updateRecentCaptureStatus(filename, size, accessible);
}
}
}
}