Skip to content

Commit

Permalink
Merge branch 'main' into cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongGino committed Dec 7, 2024
2 parents 318180a + ad52e7c commit 4163b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/neroonetimedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ NeroOneTimeDialog::NeroOneTimeDialog(QWidget *parent)

for(const QString prefix : prefixes) {
prefixesBtns << new QPushButton(prefix);
prefixesBtns.last()->setProperty("slot", prefixesBtns.count()-1);
connect(prefixesBtns.last(), &QPushButton::clicked, this, &NeroOneTimeDialog::prefixBtn_clicked);
ui->prefixes->addWidget(prefixesBtns.last());
}
Expand Down
4 changes: 3 additions & 1 deletion src/neroonetimedialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef NEROONETIMEDIALOG_H
#define NEROONETIMEDIALOG_H

#include "nerofs.h"

#include <QDialog>
#include <QPushButton>

Expand All @@ -40,7 +42,7 @@ class NeroOneTimeDialog : public QDialog
private slots:
void prefixBtn_clicked() {
QPushButton *btn = qobject_cast<QPushButton*>(sender());
selected = btn->text();
selected = NeroFS::GetPrefixes().at(btn->property("slot").toInt());
close();
}

Expand Down

0 comments on commit 4163b40

Please sign in to comment.