Skip to content

Commit 3cd3028

Browse files
committed
Fixed issue that cmd+click to flood fill did not work on macOS
1 parent 51faa1d commit 3cd3028

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

freeview/DialogPreferences.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ DialogPreferences::DialogPreferences(QWidget *parent) :
8282

8383
#ifdef Q_OS_MAC
8484
ui->groupBoxMac->setEnabled(true);
85-
ui->groupBoxMac->show();
85+
ui->groupBoxMac->hide();
8686
// connect(ui->checkBoxMacUnified, SIGNAL(toggled(bool)), mainwnd, SLOT(SetUnifiedTitleAndToolBar(bool)));
8787
connect(ui->checkBoxCommandKey, SIGNAL(toggled(bool)), mainwnd, SLOT(SetUseCommandControl(bool)));
8888
#else

freeview/Interactor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <QDebug>
2626

2727
#ifdef Q_OS_MAC
28-
Qt::KeyboardModifier Interactor::CONTROL_MODIFIER = Qt::MetaModifier;
28+
Qt::KeyboardModifier Interactor::CONTROL_MODIFIER = Qt::ControlModifier;
2929
Qt::Key Interactor::CONTROL_KEY = Qt::Key_Meta;
3030
#else
3131
Qt::KeyboardModifier Interactor::CONTROL_MODIFIER = Qt::ControlModifier;
@@ -53,7 +53,7 @@ void Interactor::SetAction( int nAction )
5353
void Interactor::SetUseCommandControl(bool b)
5454
{
5555
#ifdef Q_OS_MAC
56-
if (b)
56+
if (true)
5757
{
5858
CONTROL_MODIFIER = Qt::ControlModifier;
5959
CONTROL_KEY = Qt::Key_Control;

0 commit comments

Comments
 (0)