Fixed to display right header image for each mode

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7338 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-05-06 17:41:38 +00:00
parent a9dcd24ba7
commit 25c15d1a32

View File

@ -90,7 +90,18 @@ void GxsChannelGroupDialog::initUi()
QPixmap GxsChannelGroupDialog::serviceImage()
{
return QPixmap(":/images/add_channel64.png");
switch (mode())
{
case MODE_CREATE:
return QPixmap(":/images/add_channel64.png");
break;
case MODE_SHOW:
return QPixmap(":/images/channels.png");
break;
case MODE_EDIT:
return QPixmap(":/images/channels.png");
break;
}
}
bool GxsChannelGroupDialog::service_CreateGroup(uint32_t &token, const RsGroupMetaData &meta)