From 5295215694be36d72c3b7610e3972e1bb3269aed Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 1 Apr 2013 15:11:48 +0200 Subject: [PATCH] Fix report loading --- management-gui/mainwindow.cpp | 5 +++-- management-gui/mainwindow.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/management-gui/mainwindow.cpp b/management-gui/mainwindow.cpp index 12e3d24..2a5ef2d 100644 --- a/management-gui/mainwindow.cpp +++ b/management-gui/mainwindow.cpp @@ -511,9 +511,10 @@ void MainWindow::on_addReport_clicked() } -void MainWindow::on_tabWidget_currentChanged(QWidget *arg1) +void MainWindow::on_tabWidget_currentChanged(int idx) { - if (arg1 != ui->reportsTab) + QWidget *tab = ui->tabWidget->widget(idx); + if (tab != ui->reportsTab) return; if (ui->reports->count()) diff --git a/management-gui/mainwindow.h b/management-gui/mainwindow.h index 1c37c93..cf70a80 100644 --- a/management-gui/mainwindow.h +++ b/management-gui/mainwindow.h @@ -83,7 +83,7 @@ private slots: void on_runReport_clicked(); void on_editReport_clicked(); void on_addReport_clicked(); - void on_tabWidget_currentChanged(QWidget *arg1); + void on_tabWidget_currentChanged(int idx); protected: void dragEnterEvent(QDragEnterEvent *event); -- 2.52.0