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 <stdio.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <Alert.h>
|
||||
#include <Catalog.h>
|
||||
|
|
|
@ -70,6 +70,10 @@ MainWindow::MainWindow()
|
|||
void
|
||||
MainWindow::Start()
|
||||
{
|
||||
// No accounts, show account window
|
||||
if (ProtocolManager::Get()->CountProtocolInstances() == 0)
|
||||
MessageReceived(new BMessage(APP_SHOW_ACCOUNTS));
|
||||
|
||||
// Login all accounts
|
||||
fServer->LoginAll();
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue