From bfeafea68c0b919b4527f5373d368e449eca7633 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 18 Mar 2010 10:41:25 +0000 Subject: [PATCH] MGR: If user selects Event Log from menu when Event Log window already open, just bring it to the front instead of opening another window svn path=/trunk/boinc/; revision=20940 --- checkin_notes | 1 - clientgui/BOINCGUIApp.cpp | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/checkin_notes b/checkin_notes index 246194f9a1..2ade362ec7 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1992,7 +1992,6 @@ Rom 16 Mar 2010 win_build/ *.vcproc - Charlie 18 Mar 2010 - MGR: If user selects Event Log from menu when Event Log window already open, just bring it to the front instead of opening another window. diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 5e9412274a..7f1cf6ce5e 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -811,12 +811,11 @@ bool CBOINCGUIApp::DisplayEventLog() { m_pEventLog->Raise(); } else { m_pEventLog = new CDlgEventLog(); - } - - if (m_pEventLog) { - rc = m_pEventLog->Show(); - if (m_pFrame) { - m_pFrame->UpdateRefreshTimerInterval(); + if (m_pEventLog) { + rc = m_pEventLog->Show(); + if (m_pFrame) { + m_pFrame->UpdateRefreshTimerInterval(); + } } }