Skip to content

Commit 5939265

Browse files
author
Alexander Bychuk
committed
fix : name for filter-dialog title
fix : sigsegv when pressed escape on empty export table list
1 parent c3efa3e commit 5939265

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

finfdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
FinfDialog::FinfDialog(QWidget *parent) : QDialog(parent), ui(new Ui::FinfDialog) {
66
ui->setupUi(this);
7+
setWindowTitle("Filter export table");
78
shortcutClose = new QShortcut(QKeySequence(Qt::Key_Escape), this);
89
connect(shortcutClose, SIGNAL(activated()), this, SLOT(close()));
910

mainwindow.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ MainWindow::~MainWindow() {
5252
delete helpMenu;
5353
}
5454

55-
void MainWindow::fillExportTable(const QString &filter) { qldd->fillExportTable(*ui->listWidgetExportTable, filter); }
55+
void MainWindow::fillExportTable(const QString &filter) {
56+
if (qldd) {
57+
qldd->fillExportTable(*ui->listWidgetExportTable, filter);
58+
}
59+
}
5660

5761
void MainWindow::reset(const QString &fileName) {
5862
qldd.reset(new QLdd(fileName, qApp->applicationDirPath()));

0 commit comments

Comments
 (0)