mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 06:31:20 -04:00
Fix Notify Settings
This commit is contained in:
parent
f70cbbe065
commit
064202296d
3 changed files with 21 additions and 19 deletions
|
@ -425,6 +425,18 @@ void MainWindow::initStackedPage()
|
||||||
addPage(getStartedPage = new GetStartedDialog(ui->stackPages), grp, NULL);
|
addPage(getStartedPage = new GetStartedDialog(ui->stackPages), grp, NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//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(this);
|
||||||
|
if (userNotify) {
|
||||||
|
userNotify->initialize(ui->toolBarPage, notifyIt->second.first, notifyIt->second.second);
|
||||||
|
connect(userNotify, SIGNAL(countChanged()), this, SLOT(updateTrayCombine()));
|
||||||
|
userNotifyList.push_back(userNotify);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addPage(settingsDialog = new SettingsPage(ui->stackPages),grp,¬ify);
|
addPage(settingsDialog = new SettingsPage(ui->stackPages),grp,¬ify);
|
||||||
|
|
||||||
/* Create the toolbar */
|
/* Create the toolbar */
|
||||||
|
@ -449,16 +461,6 @@ void MainWindow::initStackedPage()
|
||||||
|
|
||||||
addAction(new QAction(QIcon(IMAGE_QUIT), tr("Quit"), ui->toolBarAction), &MainWindow::doQuit, SLOT(doQuit()));
|
addAction(new QAction(QIcon(IMAGE_QUIT), tr("Quit"), ui->toolBarAction), &MainWindow::doQuit, SLOT(doQuit()));
|
||||||
|
|
||||||
QList<QPair<MainPage*, QPair<QAction*, QListWidgetItem*> > >::iterator notifyIt;
|
|
||||||
for (notifyIt = notify.begin(); notifyIt != notify.end(); ++notifyIt) {
|
|
||||||
UserNotify *userNotify = notifyIt->first->getUserNotify(this);
|
|
||||||
if (userNotify) {
|
|
||||||
userNotify->initialize(ui->toolBarPage, notifyIt->second.first, notifyIt->second.second);
|
|
||||||
connect(userNotify, SIGNAL(countChanged()), this, SLOT(updateTrayCombine()));
|
|
||||||
userNotifyList.push_back(userNotify);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Creates a new action associated with a config page. */
|
/** Creates a new action associated with a config page. */
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="general">
|
<widget class="QWidget" name="general">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
|
|
@ -114,7 +114,7 @@ NotifyPage::NotifyPage(QWidget * parent, Qt::WindowFlags flags)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add user notify */
|
/* Add user notify */
|
||||||
const QList<UserNotify*> &userNotifyList = MainWindow::getInstance()->getUserNotifyList() ;
|
const QList<UserNotify*> &userNotifyList = MainWindow::getInstance()->getUserNotifyList() ;
|
||||||
QList<UserNotify*>::const_iterator it;
|
QList<UserNotify*>::const_iterator it;
|
||||||
rowFeed = 0;
|
rowFeed = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue