File => Open (Ctrl+O) on Qtshark (broke with last change...)

Use Qt:Autoconnect SLOT/Signal

svn path=/trunk/; revision=44708
This commit is contained in:
Alexis La Goutte 2012-08-31 07:56:24 +00:00
parent 9d6e58a52b
commit 070ccb3d5a
2 changed files with 7 additions and 0 deletions

View File

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

View File

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