Show 'Accounts' window when starting with no accounts
This commit is contained in:
parent
794d368c11
commit
4da76e0256
|
@ -13,7 +13,6 @@
|
||||||
#include "TheApp.h"
|
#include "TheApp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
|
|
|
@ -70,6 +70,10 @@ MainWindow::MainWindow()
|
||||||
void
|
void
|
||||||
MainWindow::Start()
|
MainWindow::Start()
|
||||||
{
|
{
|
||||||
|
// No accounts, show account window
|
||||||
|
if (ProtocolManager::Get()->CountProtocolInstances() == 0)
|
||||||
|
MessageReceived(new BMessage(APP_SHOW_ACCOUNTS));
|
||||||
|
|
||||||
// Login all accounts
|
// Login all accounts
|
||||||
fServer->LoginAll();
|
fServer->LoginAll();
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue