Sfoglia il codice sorgente

show the active window correctly the first time qpaste window is show

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@508 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 16 anni fa
parent
commit
349a844e7e
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      MainFrm.cpp

+ 7 - 1
MainFrm.cpp

@@ -269,9 +269,15 @@ LRESULT CMainFrame::OnHotKey(WPARAM wParam, LPARAM lParam)
             m_keyStateModifiers = CAccels::GetKeyStateModifiers();
             SetTimer(KEY_STATE_MODIFIERS, 50, NULL);
 
-            theApp.m_activeWnd.TrackActiveWnd(NULL);
+			theApp.m_activeWnd.TrackActiveWnd(NULL);
+			bool firstRun = (m_quickPaste.m_pwndPaste == NULL);
 
             m_quickPaste.ShowQPasteWnd(this, false, true, FALSE);
+
+			if(firstRun)
+			{
+				m_quickPaste.m_pwndPaste->UpdateStatus();
+			}
         }
 
         KillTimer(CLOSE_WINDOW_TIMER);