Skip to content

Commit

Permalink
Fix bug with -m option
Browse files Browse the repository at this point in the history
  • Loading branch information
In-line committed Dec 16, 2016
1 parent 5e68342 commit 6c41127
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 225 deletions.
2 changes: 1 addition & 1 deletion DoubleClickFix.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = DoubleClickFix
TEMPLATE = app
QMAKE_CXXFLAGS_RELEASE += -O2 -Werror
QMAKE_CXXFLAGS += -Wall -Wextra -Wzero-as-null-pointer-constant -Weffc++ -Wunknown-pragmas
QMAKE_CXXFLAGS += -Wall -Wextra -Weffc++ -Wunknown-pragmas

SOURCES += main.cpp\
mainwindow.cpp \
Expand Down
2 changes: 1 addition & 1 deletion click_lock_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

namespace Ui {
class click_lock_settings;
struct click_lock_settings_data;
}
struct click_lock_settings_data;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++" // TODO: Refactor
Expand Down
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ int main(int argc, char *argv[])
}
}
if(iShowMinimized)
{
w->setMinimizing(true);
w->showMinimized();
}
else
w->show();

Expand Down
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ bool inline MainWindow::isMinimizing() const
return m_isMinimizing;
}

void inline MainWindow::setMinimizing(bool value)
void MainWindow::setMinimizing(bool value)
{
m_isMinimizing = value;
}
Expand Down
Loading

0 comments on commit 6c41127

Please sign in to comment.