Skip to content

Commit

Permalink
Remove locking from TrackerSettingsWindow::QuitRequested()
Browse files Browse the repository at this point in the history
Like Deskbar it isn't needed here either since the window is already
locked. The return value seems to be totally ignored, so, just leave
as is.
  • Loading branch information
jscipione committed Dec 21, 2012
1 parent 7ff146f commit cd03d7c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/kits/tracker/TrackerSettingsWindow.cpp
Expand Up @@ -135,19 +135,10 @@ TrackerSettingsWindow::TrackerSettingsWindow()
bool
TrackerSettingsWindow::QuitRequested()
{
bool isHidden = false;

if (Lock()) {
isHidden = IsHidden();
Unlock();
} else
return true;

if (isHidden)
if (IsHidden())
return true;

Hide();

return false;
}

Expand Down

0 comments on commit cd03d7c

Please sign in to comment.