mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 16:16:14 +00:00
I must be blind...
This commit is contained in:
parent
299a51edf5
commit
9deb101894
1 changed files with 3 additions and 4 deletions
|
@ -554,8 +554,7 @@ void TileEditorMainWindow::onActionAddTile(int tabId)
|
||||||
|
|
||||||
TileSetNode *tsn = reinterpret_cast< TileSetNode* >( idx.internalPointer() );
|
TileSetNode *tsn = reinterpret_cast< TileSetNode* >( idx.internalPointer() );
|
||||||
|
|
||||||
int tabIdx = m_ui->tileViewTabWidget->currentIndex();
|
Node *n = tsn->child( tabId );
|
||||||
Node *n = tsn->child( tabIdx );
|
|
||||||
|
|
||||||
QFileDialog::Options options;
|
QFileDialog::Options options;
|
||||||
QString selectedFilter;
|
QString selectedFilter;
|
||||||
|
@ -571,11 +570,11 @@ void TileEditorMainWindow::onActionAddTile(int tabId)
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndex rootIdx = model->index( tabIdx, 0, m_ui->tileSetLV->currentIndex());
|
QModelIndex rootIdx = model->index( tabId, 0, m_ui->tileSetLV->currentIndex());
|
||||||
|
|
||||||
QListView *lv = NULL;
|
QListView *lv = NULL;
|
||||||
|
|
||||||
switch( tabIdx )
|
switch( tabId )
|
||||||
{
|
{
|
||||||
case TAB_128: lv = m_ui->listView128; break;
|
case TAB_128: lv = m_ui->listView128; break;
|
||||||
case TAB_256: lv = m_ui->listView256; break;
|
case TAB_256: lv = m_ui->listView256; break;
|
||||||
|
|
Loading…
Reference in a new issue