Browse Source

If showing task bar then minimize when closing ditto's main window

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@759 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 10 years ago
parent
commit
0ded1dd11a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      QPasteWnd.cpp

+ 6 - 1
QPasteWnd.cpp

@@ -546,10 +546,15 @@ BOOL CQPasteWnd::HideQPasteWindow(bool releaseFocus)
     //Save the size
     SaveWindowSize();
 
-	if (CGetSetOptions::GetShowInTaskBar() == FALSE)
+	if (CGetSetOptions::GetShowInTaskBar())
+	{
+		ShowWindow(SW_MINIMIZE);
+	}
+	else
 	{
 		ShowWindow(SW_HIDE);
 	}
+	
 
     //Reset the selection in the search combo
     m_bHandleSearchTextChange = false;