mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
Fix a crash when enabling Texture Directory List
This commit is contained in:
parent
4dbf7727c6
commit
8896c609ed
1 changed files with 4 additions and 1 deletions
|
@ -2757,6 +2757,7 @@ void MainFrame::Create(){
|
|||
gtk_widget_show( texSplit );
|
||||
} else
|
||||
{
|
||||
m_pSplits[4] = NULL;
|
||||
gtk_paned_pack2( GTK_PANED( vsplit2 ), frame, TRUE, TRUE );
|
||||
}
|
||||
}
|
||||
|
@ -2967,6 +2968,7 @@ void MainFrame::Create(){
|
|||
gtk_notebook_insert_page( GTK_NOTEBOOK( g_pGroupDlg->m_pNotebook ), texSplit, w, 1 );
|
||||
} else
|
||||
{
|
||||
m_pSplits[4] = NULL;
|
||||
gtk_notebook_insert_page( GTK_NOTEBOOK( g_pGroupDlg->m_pNotebook ), frame, w, 1 );
|
||||
}
|
||||
}
|
||||
|
@ -3049,6 +3051,7 @@ void MainFrame::Create(){
|
|||
gtk_notebook_insert_page( GTK_NOTEBOOK( g_pGroupDlg->m_pNotebook ), texSplit, w, 1 );
|
||||
} else
|
||||
{
|
||||
m_pSplits[4] = NULL;
|
||||
gtk_notebook_insert_page( GTK_NOTEBOOK( g_pGroupDlg->m_pNotebook ), frame, w, 1 );
|
||||
}
|
||||
}
|
||||
|
@ -3422,7 +3425,7 @@ void MainFrame::OnDelete(){
|
|||
else{
|
||||
g_PrefsDlg.mWindowInfo.nZFloatWidth = gtk_paned_get_position( GTK_PANED( m_pSplits[0] ) );
|
||||
}
|
||||
if( g_PrefsDlg.m_bShowTexDirList ) {
|
||||
if( g_PrefsDlg.m_bShowTexDirList && m_pSplits[4] ) {
|
||||
g_PrefsDlg.mWindowInfo.nTextureDirectoryListWidth = gtk_paned_get_position( GTK_PANED( m_pSplits[4] ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue