summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-06 13:57:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-06 13:57:08 +0000
commited629adafe5d1bb4fc976412dc7767d16d641792 (patch)
tree3a503f5461d96b9a8f2a19369daeca7910852ee9 /plugins/PluginUpdater/src
parentdd8167ac202bd21dfd2548efdcd2691b217f794e (diff)
make window visible
git-svn-id: http://svn.miranda-ng.org/main/trunk@1380 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r--plugins/PluginUpdater/src/Scanner.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp
index 929999c80b..13cd2adf05 100644
--- a/plugins/PluginUpdater/src/Scanner.cpp
+++ b/plugins/PluginUpdater/src/Scanner.cpp
@@ -175,8 +175,13 @@ static void CheckUpdates(void *)
void DoCheck(int iFlag)
{
- if (CheckThread || hwndDialog)
+ if (CheckThread)
ShowPopup(0, LPGENT("Plugin Updater"), LPGENT("Update checking already started!"), 2, 0);
+ else if (hwndDialog) {
+ ShowWindow(hwndDialog, SW_SHOW);
+ SetForegroundWindow(hwndDialog);
+ SetFocus(hwndDialog);
+ }
else if (iFlag) {
CheckThread = mir_forkthread(CheckUpdates, 0);
DBWriteContactSettingDword(NULL, MODNAME, "LastUpdate", time(NULL));