diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index 49215c34ef..ebe7626925 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -122,7 +122,7 @@ signals: public slots: // in main_window_slots.cpp - void openCaptureFile(QString& cf_path = *new QString()); + void openCaptureFile(QString& cf_path = *new QString(), QString &display_filter = *new QString()); #ifdef HAVE_LIBPCAP void captureCapturePrepared(capture_options *capture_opts); diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index c793b71ea5..018010546b 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -67,10 +67,9 @@ // Public slots // -void MainWindow::openCaptureFile(QString &cf_path) +void MainWindow::openCaptureFile(QString &cf_path, QString &display_filter) { QString file_name = ""; - QString display_filter = ""; dfilter_t *rfcode = NULL; int err;