diff options
Diffstat (limited to 'plugins/NewsAggregator/Src/Services.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/Services.cpp | 11 |
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;
}
|