mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Set teh current selection to row 0
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
3e2addc057
commit
ac73999f07
2 changed files with 8 additions and 0 deletions
|
@ -749,6 +749,13 @@ void TileEditorMainWindow::onTileBankLoaded()
|
||||||
m_ui->tileBankTexturePathPB->setText( "..." );
|
m_ui->tileBankTexturePathPB->setText( "..." );
|
||||||
else
|
else
|
||||||
m_ui->tileBankTexturePathPB->setText( path );
|
m_ui->tileBankTexturePathPB->setText( path );
|
||||||
|
|
||||||
|
QModelIndex idx = m_tileModel->index( 0, 0 );
|
||||||
|
if( idx.isValid() )
|
||||||
|
m_ui->tileSetLV->setCurrentIndex( idx );
|
||||||
|
|
||||||
|
if( m_ui->landLW->count() > 0 )
|
||||||
|
m_ui->landLW->setCurrentRow( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
TileModel* TileEditorMainWindow::createTileModel()
|
TileModel* TileEditorMainWindow::createTileModel()
|
||||||
|
|
|
@ -168,5 +168,6 @@ bool TileBankLoader::load( const char *filename, TileModel *model, QList< Land >
|
||||||
|
|
||||||
model->setTexturePath( p->bank.getAbsPath().c_str() );
|
model->setTexturePath( p->bank.getAbsPath().c_str() );
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue