forked from blue/squawk
Compare commits
No commits in common. "develop" and "master" have entirely different histories.
|
@ -29,7 +29,6 @@ Application::Application(Core::Squawk* p_core):
|
|||
destroyingSquawk(false),
|
||||
storage()
|
||||
{
|
||||
squawk = new Squawk(roster);
|
||||
connect(&roster, &Models::Roster::unnoticedMessage, this, &Application::notify);
|
||||
connect(&roster, &Models::Roster::unreadMessagesCountChanged, this, &Application::unreadMessagesCountChanged);
|
||||
|
||||
|
@ -54,7 +53,7 @@ Application::Application(Core::Squawk* p_core):
|
|||
connect(&roster, &Models::Roster::localPathInvalid, core, &Core::Squawk::onLocalPathInvalid);
|
||||
|
||||
|
||||
//connecting backend to myself
|
||||
//coonecting backend to myself
|
||||
connect(core, &Core::Squawk::stateChanged, this, &Application::stateChanged);
|
||||
|
||||
connect(core, &Core::Squawk::accountMessage, &roster, &Models::Roster::addMessage);
|
||||
|
@ -148,7 +147,8 @@ void Application::checkForTheLastWindow()
|
|||
|
||||
void Application::createMainWindow()
|
||||
{
|
||||
if (squawk) {
|
||||
if (squawk == nullptr) {
|
||||
squawk = new Squawk(roster);
|
||||
|
||||
connect(squawk, &Squawk::notify, this, &Application::notify);
|
||||
connect(squawk, &Squawk::changeSubscription, this, &Application::changeSubscription);
|
||||
|
|
Loading…
Reference in New Issue