mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Switch to mapping tab when mapping is added.
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user