Skip to content

Commit

Permalink
打开窗口时,图标变化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanlangsir committed Mar 24, 2013
1 parent 70fb193 commit 2ddd422
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
*~
build/
.clang_complete
3 changes: 1 addition & 2 deletions src/chatwidget/chatmsg_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ void ChatMsgProcessor::removeAction(QAction *act)
actions_.removeOne(act);
SystemTrayIcon::instance()->removeAction(act);

delete act;
act = NULL;
act->deleteLater();
}


Expand Down
4 changes: 4 additions & 0 deletions src/trayicon/systemtray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ void SystemTrayIcon::removeAction(QAction *act)
setIcon(QIcon(QQGlobal::resourceDir() + "/webqq.ico"));
blink_timer_.stop();
}
else
{
setIcon(actions_.last()->icon());
}
}

void SystemTrayIcon::addSeparator()
Expand Down

0 comments on commit 2ddd422

Please sign in to comment.