Skip to content

Commit 6c41127

Browse files
committed
Fix bug with -m option
1 parent 5e68342 commit 6c41127

File tree

5 files changed

+228
-225
lines changed

5 files changed

+228
-225
lines changed

DoubleClickFix.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
1212
TARGET = DoubleClickFix
1313
TEMPLATE = app
1414
QMAKE_CXXFLAGS_RELEASE += -O2 -Werror
15-
QMAKE_CXXFLAGS += -Wall -Wextra -Wzero-as-null-pointer-constant -Weffc++ -Wunknown-pragmas
15+
QMAKE_CXXFLAGS += -Wall -Wextra -Weffc++ -Wunknown-pragmas
1616

1717
SOURCES += main.cpp\
1818
mainwindow.cpp \

click_lock_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
namespace Ui {
3030
class click_lock_settings;
31-
struct click_lock_settings_data;
3231
}
32+
struct click_lock_settings_data;
3333

3434
#pragma GCC diagnostic push
3535
#pragma GCC diagnostic ignored "-Weffc++" // TODO: Refactor

main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ int main(int argc, char *argv[])
3838
}
3939
}
4040
if(iShowMinimized)
41+
{
42+
w->setMinimizing(true);
4143
w->showMinimized();
44+
}
4245
else
4346
w->show();
4447

mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ bool inline MainWindow::isMinimizing() const
303303
return m_isMinimizing;
304304
}
305305

306-
void inline MainWindow::setMinimizing(bool value)
306+
void MainWindow::setMinimizing(bool value)
307307
{
308308
m_isMinimizing = value;
309309
}

0 commit comments

Comments
 (0)