removed debug info, added missing error message

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6140 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-02-23 13:24:16 +00:00
parent c117078566
commit 718314af75
4 changed files with 31 additions and 30 deletions

View File

@ -365,8 +365,6 @@ ChatTabWidget *ChatLobbyWidget::getTabWidget()
void ChatLobbyWidget::displayChatLobbyEvent(qulonglong lobby_id, int event_type, const QString& nickname, const QString& str)
{
std::cerr << "Received displayChatLobbyEvent()!" << std::endl;
std::string vpid;
if (rsMsgs->getVirtualPeerId(lobby_id, vpid)) {
if (ChatLobbyDialog *cld = dynamic_cast<ChatLobbyDialog*>(ChatDialog::getExistingChat(vpid))) {

View File

@ -43,7 +43,7 @@
#include "SearchDialog.h"
#include "TransfersDialog.h"
#include "MessagesDialog.h"
//#include "SharedFilesDialog.h"
#include "SharedFilesDialog.h"
#include "PluginsPage.h"
#include "NewsFeed.h"
#include "ShareManager.h"
@ -885,17 +885,20 @@ void SetForegroundWindowInternal(HWND hWnd)
return NULL;
}
switch (page) {
// case Network:
// return _instance->networkDialog;
switch (page)
{
case Network:
return _instance->friendsDialog->networkDialog;
case Friends:
return _instance->friendsDialog;
case ChatLobby:
return _instance->chatLobbyDialog;
case Transfers:
return _instance->transfersDialog;
// case SharedDirectories:
// return _instance->sharedfilesDialog;
case SharedDirectories:
return _instance->transfersDialog->localSharedFiles;
case Search:
return _instance->transfersDialog->searchDialog;
case Messages:
return _instance->messagesDialog;
#ifdef RS_USE_LINKS

View File

@ -1215,7 +1215,9 @@ static void processList(const QStringList &list, const QString &textSingular, co
MainWindow::showWindow(MainWindow::Search);
SearchDialog *searchDialog = dynamic_cast<SearchDialog*>(MainWindow::getPage(MainWindow::Search));
if (!searchDialog) {
if (!searchDialog)
{
std::cerr << "Retrieve of search dialog failed. Please debug!" << std::endl;
break;
}

View File

@ -1490,7 +1490,7 @@ void TransfersDialog::changeSpeed(int speed)
void TransfersDialog::changeQueuePosition(QueueMove mv)
{
std::cerr << "In changeQueuePosition (gui)"<< std::endl ;
// std::cerr << "In changeQueuePosition (gui)"<< std::endl ;
std::set<std::string> items;
std::set<std::string>::iterator it;
getSelectedItems(&items, NULL);
@ -1503,7 +1503,7 @@ void TransfersDialog::changeQueuePosition(QueueMove mv)
void TransfersDialog::clearcompleted()
{
std::cerr << "TransfersDialog::clearcompleted()" << std::endl;
// std::cerr << "TransfersDialog::clearcompleted()" << std::endl;
rsFiles->FileClearCompleted();
}
@ -1512,8 +1512,6 @@ void TransfersDialog::showFileDetails()
std::string file_hash ;
int nb_select = 0 ;
std::cout << "new selection " << std::endl ;
for(int i = 0; i <= DLListModel->rowCount(); i++)
if(selection->isRowSelected(i, QModelIndex()))
{