Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/chatdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ CChatDlg::CChatDlg ( QWidget* parent ) : CBaseDlg ( parent, Qt::Window ) // use
// Now tell the layout about the menu
layout()->setMenuBar ( pMenu );

#if defined( ANDROID ) || defined( Q_OS_IOS )
// for the Android and iOS version maximize the window (#3383)
setWindowState ( Qt::WindowMaximized );
#endif

// Connections -------------------------------------------------------------
QObject::connect ( edtLocalInputText, &QLineEdit::textChanged, this, &CChatDlg::OnLocalInputTextTextChanged );

Expand Down
6 changes: 5 additions & 1 deletion src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,12 @@ void CClientDlg::ShowChatWindow ( const bool bForceRaise )

if ( bForceRaise )
{
// make sure dialog is upfront and has focus
#if defined( ANDROID ) || defined( Q_OS_IOS )
// on Android/iOS the dialog is always shown maximized (#3383); showNormal() would undo that
#else
// make sure dialog is upfront and has focus (not applicable on Android/iOS, see above)
ChatDlg.showNormal();
#endif
ChatDlg.raise();
ChatDlg.activateWindow();
}
Expand Down
Loading