Skip to content

Commit

Permalink
Fix indicator signals
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed May 30, 2024
1 parent 06364f3 commit 912ea11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/demodialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ demodialog::demodialog(QString footer_iwad, QStringList footer_files, QWidget *p
{
files.append(QFileInfo(MainWindow::pMainWindow->wads_listWidget()->item(i)->data(Qt::ToolTipRole).toString()));
}
MainWindow::pMainWindow->wads_listWidget()->clear();

std::sort(files.begin(), files.end(), [](QFileInfo p1, QFileInfo p2) { return p1.baseName().toLower() < p2.baseName().toLower(); });
files.erase(std::unique(files.begin(), files.end()), files.end());
Expand Down
3 changes: 1 addition & 2 deletions src/mainwindow_bottom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ void MainWindow::initializeIndicators()
// ui->wadsSelected_indicator->setPixmap(QPixmap(":/pngs/pngs/wadsSelected_indicator.png").scaled(20, 20, Qt::KeepAspectRatio));
connect(ui->wads_listWidget->model(), SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(show_hide_wadsSelected_indicator()));
connect(ui->wads_listWidget->model(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(show_hide_wadsSelected_indicator()));
connect(ui->wads_listWidget->model(), SIGNAL(modelReset()), this, SLOT(show_hide_wadsSelected_indicator()));
show_hide_wadsSelected_indicator();

connect(ui->record_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(show_hide_recordingDemo_indicator()));
connect(ui->record_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(show_hide_recordingDemo_indicator()));
show_hide_recordingDemo_indicator();

connect(ui->playback_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(show_hide_playingDemo_indicator()));
connect(ui->playback_lineEdit, SIGNAL(textChanged(QString)), this, SLOT(show_hide_playingDemo_indicator()));
show_hide_playingDemo_indicator();
}
Expand Down

0 comments on commit 912ea11

Please sign in to comment.