From cf95edaf6fa79d68af2b25ea18ccdea0672c2ef7 Mon Sep 17 00:00:00 2001 From: Tats Date: Sun, 1 Dec 2013 13:43:24 -0500 Subject: [PATCH] Bug fix: When switching to a source that has no mapping attached to it, last selected mapping was still in use --- MainWindow.cpp | 1 + 1 file changed, 1 insertion(+) 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)