mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #2613 from csoler/v0.6-TorControl3
fixed bug causing hidden nodes to crash at start
This commit is contained in:
commit
56b6196fb2
@ -209,6 +209,8 @@ RetroshareInviteFlags HomePage::currentInviteFlags() const
|
||||
{
|
||||
RetroshareInviteFlags invite_flags = RetroshareInviteFlags::NOTHING;
|
||||
|
||||
if(!RsAccounts::isHiddenNode())
|
||||
{
|
||||
if(mIncludeLocIPact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::CURRENT_LOCAL_IP;
|
||||
|
||||
@ -220,6 +222,7 @@ RetroshareInviteFlags HomePage::currentInviteFlags() const
|
||||
|
||||
if(mIncludeIPHistoryact->isChecked())
|
||||
invite_flags |= RetroshareInviteFlags::FULL_IP_HISTORY;
|
||||
}
|
||||
|
||||
return invite_flags;
|
||||
}
|
||||
|
@ -485,11 +485,11 @@ void MainWindow::initStackedPage()
|
||||
addPage(newsFeed = new NewsFeed(ui->stackPages), grp, ¬ify);
|
||||
|
||||
//List All notify before Setting was created
|
||||
QList<QPair<MainPage*, QPair<QAction*, QListWidgetItem*> > >::iterator notifyIt;
|
||||
for (notifyIt = notify.begin(); notifyIt != notify.end(); ++notifyIt) {
|
||||
UserNotify *userNotify = notifyIt->first->getUserNotify();
|
||||
for (auto notifyIt:notify)
|
||||
{
|
||||
UserNotify *userNotify = notifyIt.first->getUserNotify();
|
||||
if (userNotify) {
|
||||
userNotify->initialize(ui->toolBarPage, notifyIt->second.first, notifyIt->second.second);
|
||||
userNotify->initialize(ui->toolBarPage, notifyIt.second.first, notifyIt.second.second);
|
||||
connect(userNotify, SIGNAL(countChanged()), this, SLOT(updateTrayCombine()));
|
||||
userNotifyList.push_back(userNotify);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user