Allow a display filter to be specified in openCaptureFile().

svn path=/trunk/; revision=45883
This commit is contained in:
Gerald Combs 2012-11-03 18:02:01 +00:00
parent f28a5df5df
commit 2e6f4fafd4
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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;