diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-10-11 21:26:26 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-10-11 21:26:26 +0000 |
commit | 564ca2d5e9fc3366eec476c0d27839b20eef972a (patch) | |
tree | c08767d88613cea5796e9ce8c4dab8716d9412ed /ui/qt/main_status_bar.cpp | |
parent | 2dcfce371bca83eae5b6ccdb76f9be4a2dd9e87a (diff) | |
download | wireshark-564ca2d5e9fc3366eec476c0d27839b20eef972a.tar.gz |
Try to fix Qt compilation when libpcap is disabled.
svn path=/trunk/; revision=52552
Diffstat (limited to 'ui/qt/main_status_bar.cpp')
-rw-r--r-- | ui/qt/main_status_bar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/main_status_bar.cpp b/ui/qt/main_status_bar.cpp index 4db1a6d0bc..f7cc48eb8b 100644 --- a/ui/qt/main_status_bar.cpp +++ b/ui/qt/main_status_bar.cpp @@ -299,6 +299,7 @@ void MainStatusBar::updateCaptureStatistics(capture_session *cap_session) { QString packets_str; +#ifdef HAVE_LIBPCAP /* Do we have any packets? */ if ((!cap_session || cap_session->cf == cap_file_) && cap_file_ && cap_file_->count) { packets_str.append(QString(tr("Packets: %1 %4 Displayed: %2 %4 Marked: %3")) @@ -322,8 +323,12 @@ void MainStatusBar::updateCaptureStatistics(capture_session *cap_session) .arg(computed_elapsed%1000)); } } else { +#else packets_str = tr("No Packets"); +#endif // HAVE_LIBPCAP +#ifdef HAVE_LIBPCAP } +#endif // HAVE_LIBPCAP popPacketStatus(); pushPacketStatus(packets_str); |