diff --git a/MainWindow.cpp b/MainWindow.cpp index d9067d9..63c25f2 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -60,6 +60,7 @@ void MainWindow::handleSourceItemSelectionChanged() // Reconstruct shape item list. shapeList->clear(); + setCurrentMapping(-1); // de-select current mapping to avoid being stuck with the last selection // Retrieve all mappings associated to paint. std::map mappings = getMappingManager().getPaintMappings(idx); for (std::map::iterator it = mappings.begin(); it != mappings.end(); ++it)