aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-08-31 07:56:24 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-08-31 07:56:24 +0000
commit070ccb3d5a8a256522c047d6024b89a5ddb5a7de (patch)
tree84da0c95ca51dddc235e0d67ce8c9e654400120b /ui/qt
parent9d6e58a52be929a3528f114547db0a6c3096d102 (diff)
File => Open (Ctrl+O) on Qtshark (broke with last change...)
Use Qt:Autoconnect SLOT/Signal svn path=/trunk/; revision=44708
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/main_window.cpp6
-rw-r--r--ui/qt/main_window.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index a7073a6012..a986ec5d8b 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -457,6 +457,11 @@ void MainWindow::openRecentCaptureFile(QString &cfPath)
main_ui_->statusBar->showExpert();
}
+void MainWindow::on_actionFileOpen_triggered() {
+ openRecentCaptureFile();
+}
+
+
void MainWindow::on_actionFileClose_triggered() {
cf_close(&cfile);
main_ui_->mainStack->setCurrentWidget(main_welcome_);
@@ -471,6 +476,7 @@ void MainWindow::recentActionTriggered() {
}
}
+
void MainWindow::on_actionGoGoToPacket_triggered() {
if (packet_list_->model()->rowCount() < 1) {
return;
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index c181421042..799b3e0fae 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -80,6 +80,7 @@ public slots:
private slots:
void updateRecentFiles();
void openRecentCaptureFile(QString& cfPath = *new QString());
+ void on_actionFileOpen_triggered();
void on_actionFileClose_triggered();
void recentActionTriggered();
void on_actionGoGoToPacket_triggered();