I must be blind...

This commit is contained in:
dfighter1985 2014-07-26 00:32:42 +02:00
parent a1b8737776
commit 4d0002a6f4

View file

@ -554,8 +554,7 @@ void TileEditorMainWindow::onActionAddTile(int tabId)
TileSetNode *tsn = reinterpret_cast< TileSetNode* >( idx.internalPointer() );
int tabIdx = m_ui->tileViewTabWidget->currentIndex();
Node *n = tsn->child( tabIdx );
Node *n = tsn->child( tabId );
QFileDialog::Options options;
QString selectedFilter;
@ -571,11 +570,11 @@ void TileEditorMainWindow::onActionAddTile(int tabId)
c++;
}
QModelIndex rootIdx = model->index( tabIdx, 0, m_ui->tileSetLV->currentIndex());
QModelIndex rootIdx = model->index( tabId, 0, m_ui->tileSetLV->currentIndex());
QListView *lv = NULL;
switch( tabIdx )
switch( tabId )
{
case TAB_128: lv = m_ui->listView128; break;
case TAB_256: lv = m_ui->listView256; break;