mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
move initialization of UI at the top in NewsFeed
This commit is contained in:
parent
9617ee5135
commit
cd61ec8635
@ -83,6 +83,9 @@ NewsFeed::NewsFeed(QWidget *parent) : MainPage(parent), ui(new Ui::NewsFeed),
|
|||||||
RsEventType::MAIL_STATUS
|
RsEventType::MAIL_STATUS
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
|
/* Invoke the Qt Designer generated object setup routine */
|
||||||
|
ui->setupUi(this);
|
||||||
|
|
||||||
for(uint32_t i=0;i<mEventTypes.size();++i)
|
for(uint32_t i=0;i<mEventTypes.size();++i)
|
||||||
{
|
{
|
||||||
mEventHandlerIds.push_back(0); // needed to force intialization by registerEventsHandler()
|
mEventHandlerIds.push_back(0); // needed to force intialization by registerEventsHandler()
|
||||||
@ -91,9 +94,6 @@ NewsFeed::NewsFeed(QWidget *parent) : MainPage(parent), ui(new Ui::NewsFeed),
|
|||||||
mEventHandlerIds.back(), mEventTypes[i] );
|
mEventHandlerIds.back(), mEventTypes[i] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Invoke the Qt Designer generated object setup routine */
|
|
||||||
ui->setupUi(this);
|
|
||||||
|
|
||||||
if (!instance) {
|
if (!instance) {
|
||||||
instance = this;
|
instance = this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user