Commit 5de36a18 authored by Mathieu Valois's avatar Mathieu Valois
Browse files

Fix widgets not refreshing when new file is analyzed

parent 5d497953
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -48,8 +48,8 @@ private:
    Ui::MainWindow *ui;
    Statsgen stats;
    QMessageBox waitBox;
    QVBoxLayout * layoutCharset;
    QVBoxLayout * layoutLength;
    QVBoxLayout * layoutCharset = nullptr;
    QVBoxLayout * layoutLength = nullptr;
    int firstTime=1;
    void initGraphicalStats(QBarSeries * barLength, QPieSeries * pieCharset, double & percentageTotal, double & percentageSecurity);
};
+2 −0
Original line number Diff line number Diff line
@@ -169,6 +169,8 @@ void MainWindow::startGame() {
    ui->maxAdvancedCheckBox->setDisabled(true);
    ui->maxSimpleCheckBox->setDisabled(true);

    delete layoutLength;
    delete layoutCharset;

    WorkerThread *workerThread = new WorkerThread(stats);
    connect(workerThread, SIGNAL(resultReady()), this, SLOT(handleResults()));