Skip to content

Commit

Permalink
fix: test correct hint for corresponding function
Browse files Browse the repository at this point in the history
Change-Id: I146538fe61c4210c19adaf5833b889116ecc8585
  • Loading branch information
sonald committed Dec 12, 2017
1 parent 982940f commit 8d250da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgets/dtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ void DTitlebarPrivate::updateButtonsFunc()
DWindowManagerHelper::setMotifFunctions(
q->topLevelWidget()->windowHandle(),
DWindowManagerHelper::FUNC_MAXIMIZE,
!disableFlags.testFlag(Qt::WindowMinimizeButtonHint));
!disableFlags.testFlag(Qt::WindowMaximizeButtonHint));
DWindowManagerHelper::setMotifFunctions(
q->topLevelWidget()->windowHandle(),
DWindowManagerHelper::FUNC_MINIMIZE,
!disableFlags.testFlag(Qt::WindowMaximizeButtonHint));
!disableFlags.testFlag(Qt::WindowMinimizeButtonHint));
DWindowManagerHelper::setMotifFunctions(
q->topLevelWidget()->windowHandle(),
DWindowManagerHelper::FUNC_CLOSE,
Expand Down

0 comments on commit 8d250da

Please sign in to comment.