aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window_slots.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r--ui/qt/main_window_slots.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index de4c3970c3..82fadbe799 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -73,6 +73,7 @@
#endif
#include "capture_file_dialog.h"
+#include "capture_file_properties_dialog.h"
#include "conversation_dialog.h"
#include "decode_as_dialog.h"
#include "endpoint_dialog.h"
@@ -579,8 +580,6 @@ void MainWindow::captureFileClosed(const capture_file *cf) {
main_ui_->statusBar->popFileStatus();
cap_file_ = NULL;
- summary_dialog_.close();
-
if (df_combo_box_)
{
df_combo_box_->lineEdit()->setText("");
@@ -1776,6 +1775,8 @@ void MainWindow::showHideMainWidgets(QAction *action)
}
}
+Q_DECLARE_METATYPE(ts_type)
+
void MainWindow::setTimestampFormat(QAction *action)
{
if (!action) {
@@ -1795,6 +1796,8 @@ void MainWindow::setTimestampFormat(QAction *action)
}
}
+Q_DECLARE_METATYPE(ts_precision)
+
void MainWindow::setTimestampPrecision(QAction *action)
{
if (!action) {
@@ -2552,21 +2555,14 @@ void MainWindow::on_actionCaptureStop_triggered()
stopCapture();
}
-void MainWindow::on_actionSummary_triggered()
+void MainWindow::on_actionStatisticsCaptureFileProperties_triggered()
{
- summary_dialog_.UpdateValues();
-
- if (summary_dialog_.isMinimized() == true)
- {
- summary_dialog_.showNormal();
- }
- else
- {
- summary_dialog_.show();
- }
-
- summary_dialog_.raise();
- summary_dialog_.activateWindow();
+ CaptureFilePropertiesDialog *capture_file_properties_dialog = new CaptureFilePropertiesDialog(this, cap_file_);
+ connect(capture_file_properties_dialog, SIGNAL(captureCommentChanged()),
+ this, SLOT(updateForUnsavedChanges()));
+ connect(this, SIGNAL(setCaptureFile(capture_file*)),
+ capture_file_properties_dialog, SLOT(setCaptureFile(capture_file*)));
+ capture_file_properties_dialog->show();
}
#ifdef HAVE_LIBPCAP