Switch to mapping tab when mapping is added.

This commit is contained in:
Tats
2014-10-13 23:29:40 -04:00
parent b6292e5fa4
commit aac83a576a
+4 -1
View File
@@ -1589,7 +1589,10 @@ void MainWindow::addMappingItem(uid mappingId)
connect(this, SIGNAL(paintChanged()),
mapper.get(), SLOT(updatePaint()));
// Add item to layerList widget.
// Switch to mapping tab.
contentTab->setCurrentWidget(mappingSplitter);
// Add item to layerList widget.
QListWidgetItem* item = new QListWidgetItem(label);
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
item->setCheckState(Qt::Checked);