mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
When selecting another land, select the first tile set, if it exists.
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
f66c1e837e
commit
2993c88a5d
1 changed files with 6 additions and 0 deletions
|
@ -445,6 +445,12 @@ void TileEditorMainWindow::onLandRowChanged( int row )
|
|||
|
||||
connect( m_ui->tileSetLV->selectionModel(), SIGNAL( currentChanged( const QModelIndex &, const QModelIndex & ) ),
|
||||
this, SLOT( changeActiveTileSet( const QModelIndex &, const QModelIndex & ) ) );
|
||||
|
||||
if( m_ui->tileSetLV->model()->rowCount() != 0 )
|
||||
{
|
||||
QModelIndex idx = m_ui->tileSetLV->model()->index( 0, 0 );
|
||||
m_ui->tileSetLV->setCurrentIndex( idx );
|
||||
}
|
||||
}
|
||||
|
||||
m_ui->tileSetLV->reset();
|
||||
|
|
Loading…
Reference in a new issue