diff --git a/retroshare-gui/src/gui/feeds/ChanMsgItem.cpp b/retroshare-gui/src/gui/feeds/ChanMsgItem.cpp
index aa0dff2ff..7a012ac08 100644
--- a/retroshare-gui/src/gui/feeds/ChanMsgItem.cpp
+++ b/retroshare-gui/src/gui/feeds/ChanMsgItem.cpp
@@ -47,14 +47,10 @@ ChanMsgItem::ChanMsgItem(FeedHolder *parent, uint32_t feedId, std::string chanId
/* general ones */
connect( expandButton, SIGNAL( clicked( void ) ), this, SLOT( toggle ( void ) ) );
connect( clearButton, SIGNAL( clicked( void ) ), this, SLOT( removeItem ( void ) ) );
- //connect( gotoButton, SIGNAL( clicked( void ) ), this, SLOT( gotoHome ( void ) ) );
- /* specific ones */
- connect( playButton, SIGNAL( clicked( void ) ), this, SLOT( playMedia ( void ) ) );
+ /* specific */
connect( unsubscribeButton, SIGNAL( clicked( void ) ), this, SLOT( unsubscribeChannel ( void ) ) );
- connect( downloadButton, SIGNAL( clicked( ) ), this, SLOT( downloadMedia () ) );
-
small();
updateItemStatic();
@@ -123,21 +119,15 @@ void ChanMsgItem::updateItemStatic()
layout->addWidget(fi);
}
- playButton->setEnabled(false);
if (mIsHome)
{
- /* disable buttons */
+ /* disable buttons: deletion facility not enabled with cache services yet */
clearButton->setEnabled(false);
- //gotoButton->setEnabled(false);
- unsubscribeButton->setEnabled(false);
-
clearButton->hide();
}
- /* don't really want this at all! */
- unsubscribeButton->hide();
- //playButton->hide();
+
}
@@ -162,15 +152,7 @@ void ChanMsgItem::updateItem()
}
}
- /***
- * At this point cannot create a playlist....
- * so can't enable play for all.
- if (mFileItems.size() > 0)
- {
- playButton->setEnabled(true);
- }
- ***/
}
@@ -218,32 +200,20 @@ void ChanMsgItem::gotoHome()
#endif
}
-/*********** SPECIFIC FUNCTIOSN ***********************/
+/*********** SPECIFIC FUNCTIONS ***********************/
void ChanMsgItem::unsubscribeChannel()
{
-#ifdef DEBUG_ITEM
- std::cerr << "ChanMsgItem::unsubscribeChannel()";
- std::cerr << std::endl;
-#endif
+ #ifdef DEBUG_ITEM
+ std::cerr << "ChanMsgItem::unsubscribeChannel()";
+ std::cerr << std::endl;
+ #endif
+
+ if (rsChannels)
+ {
+ rsChannels->channelSubscribe(mChanId, false);
+ }
+ updateItemStatic();
}
-
-void ChanMsgItem::playMedia()
-{
-#ifdef DEBUG_ITEM
- std::cerr << "ChanMsgItem::playMedia()";
- std::cerr << std::endl;
-#endif
-}
-
-void ChanMsgItem::downloadMedia()
-{
-#ifdef DEBUG_ITEM
- std::cerr << "ChanMsgItem::downloadMedia()";
- std::cerr << std::endl;
-#endif
-}
-
-
diff --git a/retroshare-gui/src/gui/feeds/ChanMsgItem.h b/retroshare-gui/src/gui/feeds/ChanMsgItem.h
index c31ebbc28..06fc478f5 100644
--- a/retroshare-gui/src/gui/feeds/ChanMsgItem.h
+++ b/retroshare-gui/src/gui/feeds/ChanMsgItem.h
@@ -49,9 +49,6 @@ private slots:
void removeItem();
void toggle();
- void playMedia();
- void downloadMedia();
-
void unsubscribeChannel();
void updateItem();
diff --git a/retroshare-gui/src/gui/feeds/ChanMsgItem.ui b/retroshare-gui/src/gui/feeds/ChanMsgItem.ui
index c5943c36f..c1d52f112 100644
--- a/retroshare-gui/src/gui/feeds/ChanMsgItem.ui
+++ b/retroshare-gui/src/gui/feeds/ChanMsgItem.ui
@@ -78,7 +78,7 @@ border-radius: 10px;}
- :/images/thumb-default-video.png
+ :/images/thumb-default-video.png
true
@@ -130,7 +130,7 @@ p, li { white-space: pre-wrap; }
- -
+
-
@@ -147,7 +147,7 @@ p, li { white-space: pre-wrap; }
- -
+
-
@@ -164,17 +164,6 @@ p, li { white-space: pre-wrap; }
- -
-
-
- Download
-
-
-
- :/images/download16.png:/images/download16.png
-
-
-
-
@@ -206,7 +195,7 @@ p, li { white-space: pre-wrap; }
-
+
:/images/mail_delete.png:/images/mail_delete.png
@@ -226,32 +215,12 @@ p, li { white-space: pre-wrap; }
-
+
:/images/close_normal.png:/images/close_normal.png
-
-
-
-
- 0
- 0
-
-
-
- Play Media
-
-
-
-
-
-
- :/images/player_play.png:/images/player_play.png
-
-
-
- -
@@ -269,7 +238,7 @@ p, li { white-space: pre-wrap; }
-
+
:/images/edit_add24.png:/images/edit_add24.png
@@ -337,8 +306,8 @@ border-radius: 10px;}
-
-
+
+