fix nonmodal dialogs going behind main window in linux
notes: was okay in windows wnd position is not preserved on hiding via Close event now, requires extra handling, as in class RotateDialog or g_guiSettings (no much critical cases exist) min max buttons aren't shown (when requested) in Ubuntu, shown in Windows; were shown for Qt::Window flag
This commit is contained in:
@@ -277,7 +277,7 @@ void DetachEntityTreeModel(){
|
||||
void EntityList_constructWindow( QWidget* main_window ){
|
||||
ASSERT_MESSAGE( getEntityList().m_window == 0, "error" );
|
||||
|
||||
auto window = getEntityList().m_window = new QWidget( main_window, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint );
|
||||
auto window = getEntityList().m_window = new QWidget( main_window, Qt::Dialog | Qt::WindowCloseButtonHint );
|
||||
window->setWindowTitle( "Entity List" );
|
||||
|
||||
g_guiSettings.addWindow( window, "EntityList/geometry", 350, 500 );
|
||||
|
||||
Reference in New Issue
Block a user