mirror of
https://gitlab.com/comunic/comunicmessages
synced 2025-06-20 00:45:17 +00:00
Can get current user ID
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
#include "loginwidget.h"
|
||||
#include "ui_loginwidget.h"
|
||||
#include "mainwindow.h"
|
||||
#include "../controllers/initcontroller.h"
|
||||
#include "../utils/accountutils.h"
|
||||
#include "../helpers/accounthelper.h"
|
||||
|
||||
@ -26,9 +26,8 @@ void LoginWidget::loginResult(LoginResult result)
|
||||
if(result == LoginResult::LOGIN_SUCCESS){
|
||||
qDebug("User successfully signed in.");
|
||||
|
||||
//Open the window
|
||||
MainWindow *mainWindow = new MainWindow();
|
||||
mainWindow->show();
|
||||
//Restart application
|
||||
(new InitController())->init();
|
||||
|
||||
close();
|
||||
return;
|
||||
|
Reference in New Issue
Block a user