From 52cff897351040bcd60151e56a14346653bd46fc Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Sat, 28 Sep 2019 14:24:07 +0200 Subject: [PATCH 1/2] Fixes issue #16 --- src/gui/mainwindow.ui | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/mainwindow.ui b/src/gui/mainwindow.ui index baca01d..a77a297 100644 --- a/src/gui/mainwindow.ui +++ b/src/gui/mainwindow.ui @@ -112,7 +112,11 @@ - + + + 999.990000000000009 + + From 0b369e1c8e959baeb7146dc323643a77a7c9b112 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Sat, 28 Sep 2019 15:02:55 +0200 Subject: [PATCH 2/2] fixes issue #17 --- src/gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index bb3888a..1b2f11c 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -207,7 +207,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event) if (event->type() == QEvent::KeyPress) { QKeyEvent* keyEvent = static_cast(event); if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) { - if (keyEvent->modifiers() == Qt::ControlModifier) { + if (keyEvent->modifiers() & Qt::ControlModifier) { checkSellerNo(true); } else { checkSellerNo(false); @@ -220,7 +220,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event) if (event->type() == QEvent::KeyPress) { QKeyEvent* keyEvent = static_cast(event); if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) { - if (keyEvent->modifiers() == Qt::ControlModifier) { + if (keyEvent->modifiers() & Qt::ControlModifier) { onPaidButtonTriggered(); return true; }