forked from osmocom/wireshark
Qt: Write recent before exporting profiles
The selected profile may have unsaved recent settings when exported, so write the recent file before exporting to ensure that we save the latest changes. A side effect is that it's now possible to export a newly created profile even if it has only default configuration. Bug: 15965 Change-Id: I7bb6428283789894bd2863e9ddbd130ca56b1219 Reviewed-on: https://code.wireshark.org/review/34172 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
3109f526cd
commit
ca432674b1
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "glib.h"
|
||||
#include "ui/profile.h"
|
||||
#include "ui/recent.h"
|
||||
#include "wsutil/filesystem.h"
|
||||
#include "epan/prefs.h"
|
||||
|
||||
|
@ -883,6 +884,9 @@ bool ProfileModel::exportProfiles(QString filename, QModelIndexList items, QStri
|
|||
return false;
|
||||
}
|
||||
|
||||
/* Write recent file for current profile before exporting */
|
||||
write_profile_recent();
|
||||
|
||||
QStringList files = exportFileList(items);
|
||||
if ( files.count() == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue