QT: When opening files, filter on All Capture Files immediately
This commit is contained in:
parent
89452ef2fc
commit
69daf2e339
|
@ -703,7 +703,9 @@ QDialogButtonBox *CaptureFileDialog::addHelpButton(topic_action_e help_topic)
|
|||
|
||||
int CaptureFileDialog::open(QString &file_name, unsigned int &type, QString &display_filter) {
|
||||
setWindowTitle(mainApp->windowTitleString(tr("Open Capture File")));
|
||||
setNameFilters(buildFileOpenTypeList());
|
||||
QStringList open_type_filters(buildFileOpenTypeList());
|
||||
setNameFilters(open_type_filters);
|
||||
selectNameFilter(open_type_filters.at(1));
|
||||
setFileMode(QFileDialog::ExistingFile);
|
||||
|
||||
addFormatTypeSelector(left_v_box_);
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef enum {
|
|||
merge_prepend
|
||||
} merge_action_e;
|
||||
|
||||
#define FILE_OPEN_DEFAULT 1 /* All Files */
|
||||
#define FILE_OPEN_DEFAULT 2 /* All Capture Files */
|
||||
|
||||
#define FILE_MERGE_DEFAULT FILE_OPEN_DEFAULT
|
||||
|
||||
|
|
Loading…
Reference in New Issue