summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/Services.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2018-03-10 14:43:21 +0300
committerKirill Volinsky <mataes2007@gmail.com>2018-03-10 14:43:21 +0300
commit9ac7612dc78f25b9b8bcb2fa97e4b9eb587abf3a (patch)
tree9d21ace4d688791ae1d4cd8ddbd9bdcca33c4513 /plugins/NewsAggregator/Src/Services.cpp
parentab48946296156b94919b0ee31d2ac6404a3cc4c2 (diff)
NewsAggregator: crash fix, fully on m_gui
Diffstat (limited to 'plugins/NewsAggregator/Src/Services.cpp')
-rw-r--r--plugins/NewsAggregator/Src/Services.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index 07a40ef28f..8999731766 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -56,8 +56,6 @@ int NewsAggrInit(WPARAM, LPARAM)
int NewsAggrPreShutdown(WPARAM, LPARAM)
{
- //WindowList_Broadcast(hChangeFeedDlgList, WM_CLOSE, 0, 0);
-
KillTimer(nullptr, timerId);
NetlibUnInit();
return 0;
@@ -149,9 +147,14 @@ INT_PTR CheckAllFeeds(WPARAM, LPARAM lParam)
INT_PTR AddFeed(WPARAM, LPARAM)
{
- if (pAddFeedDialog == nullptr)
+ if (pAddFeedDialog == nullptr) {
pAddFeedDialog = new CFeedEditor(-1, nullptr, NULL);
- pAddFeedDialog->Show();
+ pAddFeedDialog->Show();
+ }
+ else {
+ SetForegroundWindow(pAddFeedDialog->GetHwnd());
+ SetFocus(pAddFeedDialog->GetHwnd());
+ }
return 0;
}