mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
commit
540a8b9934
@ -144,6 +144,11 @@ std::string bloomFilter::getFilter()
|
||||
bytes++;
|
||||
}
|
||||
|
||||
if (bytes==0)
|
||||
{
|
||||
std::cerr << "(EE) Error. Cannot allocate memory for 0 byte in " << __PRETTY_FUNCTION__ << std::endl;
|
||||
return std::string();
|
||||
}
|
||||
// convert to binary array.
|
||||
uint8_t *tmparray = (uint8_t *) malloc(bytes);
|
||||
|
||||
|
@ -25,8 +25,8 @@ RsControlModule::RsControlModule(int argc, char **argv, StateTokenServer* sts, A
|
||||
mRunState(WAITING_INIT),
|
||||
mAutoLoginNextTime(false),
|
||||
mWantPassword(false),
|
||||
mPassword(""),
|
||||
mPrevIsBad(false)
|
||||
mPrevIsBad(false),
|
||||
mPassword("")
|
||||
{
|
||||
mStateToken = sts->getNewToken();
|
||||
this->argc = argc;
|
||||
|
@ -77,7 +77,7 @@ private:
|
||||
// to notify that a password callback is waiting
|
||||
// to answer the request, clear the flag and set the password
|
||||
bool mWantPassword;
|
||||
bool mPrevIsBad;
|
||||
bool mPrevIsBad ;
|
||||
std::string mTitle;
|
||||
std::string mKeyName;
|
||||
std::string mPassword;
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
|
||||
virtual int tick() { return 0; }
|
||||
|
||||
virtual void getItemNames(std::map<uint8_t,std::string>& names) const {} // This does nothing by default. Service should derive it in order to give info for the UI
|
||||
virtual void getItemNames(std::map<uint8_t,std::string>& /*names*/) const {} // This does nothing by default. Service should derive it in order to give info for the UI
|
||||
|
||||
private:
|
||||
p3ServiceServerIface *mServiceServer; // const, no need for mutex.
|
||||
|
@ -155,7 +155,7 @@ void VOIPGUIHandler::ReceivedVoipBandwidthInfo(const RsPeerId &peer_id, int byte
|
||||
#endif
|
||||
|
||||
ChatDialog *di = ChatDialog::getExistingChat(ChatId(peer_id)) ;
|
||||
if(!di)
|
||||
if(di)
|
||||
{
|
||||
|
||||
ChatWidget *cw = di->getChatWidget();
|
||||
|
@ -180,7 +180,7 @@ ToasterItem* VOIPToasterNotify::testToasterItem(QString tag)
|
||||
if (tag == "Invitation") toaster = new ToasterItem(new VOIPToasterItem(ownId, tr("Test VOIP Invitation"), VOIPToasterItem::Invitation));
|
||||
#endif
|
||||
if (tag == "AudioCall") toaster = new ToasterItem(new VOIPToasterItem(ownId, tr("Test VOIP Audio Call"), VOIPToasterItem::AudioCall));
|
||||
if (tag == "VideoCall") toaster = new ToasterItem(new VOIPToasterItem(ownId, tr("Test VOIP Video Call"), VOIPToasterItem::VideoCall));
|
||||
if (tag == "VideoCall" || toaster == NULL) toaster = new ToasterItem(new VOIPToasterItem(ownId, tr("Test VOIP Video Call"), VOIPToasterItem::VideoCall));
|
||||
|
||||
return toaster;
|
||||
}
|
||||
|
@ -2408,8 +2408,8 @@ void IdDialog::IdListCustomPopupMenu( QPoint )
|
||||
}
|
||||
}
|
||||
|
||||
if(n_selected_items==1)
|
||||
QAction *action = contextMenu->addAction(QIcon(":/images/chat_24.png"),tr("Copy identity to clipboard"),this,SLOT(copyRetroshareLink())) ;
|
||||
if (n_selected_items==1)
|
||||
contextMenu->addAction(QIcon(":/images/chat_24.png"),tr("Copy identity to clipboard"),this,SLOT(copyRetroshareLink())) ;
|
||||
|
||||
// always allow to send messages
|
||||
contextMenu->addAction(QIcon(":/images/mail_new.png"), tr("Send message"), this, SLOT(sendMsg()));
|
||||
|
@ -676,7 +676,8 @@ void MainWindow::updateTrayCombine()
|
||||
|
||||
}
|
||||
}
|
||||
notifyMenu->menuAction()->setVisible(visible);
|
||||
if (notifyMenu)
|
||||
notifyMenu->menuAction()->setVisible(visible);
|
||||
|
||||
// update tray icon
|
||||
updateFriends();
|
||||
|
@ -77,6 +77,7 @@ void MimeTextEdit::insertFromMimeData(const QMimeData* source)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (source == NULL) return;
|
||||
|
||||
//insert retroshare links
|
||||
QList<RetroShareLink> links;
|
||||
|
@ -99,7 +99,7 @@ void UserNotify::initialize(QToolBar *mainToolBar, QAction *mainAction, QListWid
|
||||
}
|
||||
}
|
||||
mListItem = listItem;
|
||||
if (mListItem && !mMainAction) {
|
||||
if (mListItem && mMainAction) {
|
||||
mButtonText = mMainAction->text();
|
||||
}
|
||||
}
|
||||
|
@ -863,7 +863,8 @@ void GxsGroupDialog::requestGroup(const RsGxsGroupId &groupId)
|
||||
std::cerr << std::endl;
|
||||
|
||||
uint32_t token;
|
||||
mInternalTokenQueue->requestGroupInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, groupIds, GXSGROUP_INTERNAL_LOADGROUP);
|
||||
if (mInternalTokenQueue)
|
||||
mInternalTokenQueue->requestGroupInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, groupIds, GXSGROUP_INTERNAL_LOADGROUP) ;
|
||||
}
|
||||
|
||||
void GxsGroupDialog::loadGroup(uint32_t token)
|
||||
|
@ -230,12 +230,13 @@ bool RsHtml::canReplaceAnchor(QDomDocument &/*doc*/, QDomElement &/*element*/, c
|
||||
case RetroShareLink::TYPE_PERSON:
|
||||
case RetroShareLink::TYPE_FORUM:
|
||||
case RetroShareLink::TYPE_CHANNEL:
|
||||
case RetroShareLink::TYPE_POSTED:
|
||||
case RetroShareLink::TYPE_SEARCH:
|
||||
case RetroShareLink::TYPE_MESSAGE:
|
||||
case RetroShareLink::TYPE_EXTRAFILE:
|
||||
case RetroShareLink::TYPE_PRIVATE_CHAT:
|
||||
case RetroShareLink::TYPE_PUBLIC_MSG:
|
||||
case RetroShareLink::TYPE_POSTED:
|
||||
case RetroShareLink::TYPE_IDENTITY:
|
||||
// not yet implemented
|
||||
break;
|
||||
|
||||
@ -259,12 +260,13 @@ void RsHtml::anchorStylesheetForImg(QDomDocument &/*doc*/, QDomElement &/*elemen
|
||||
case RetroShareLink::TYPE_PERSON:
|
||||
case RetroShareLink::TYPE_FORUM:
|
||||
case RetroShareLink::TYPE_CHANNEL:
|
||||
case RetroShareLink::TYPE_POSTED:
|
||||
case RetroShareLink::TYPE_SEARCH:
|
||||
case RetroShareLink::TYPE_MESSAGE:
|
||||
case RetroShareLink::TYPE_EXTRAFILE:
|
||||
case RetroShareLink::TYPE_PRIVATE_CHAT:
|
||||
case RetroShareLink::TYPE_PUBLIC_MSG:
|
||||
case RetroShareLink::TYPE_POSTED:
|
||||
case RetroShareLink::TYPE_IDENTITY:
|
||||
// not yet implemented
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user