We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ae1e40 commit e2b1a1eCopy full SHA for e2b1a1e
src/ui/paletteeditor.cpp
@@ -283,4 +283,13 @@ void PaletteEditor::closeEvent(QCloseEvent*) {
283
saveGeometry(),
284
saveState()
285
);
286
+
287
+ // Opening the color search window then closing the Palette Editor sets
288
+ // focus to the main editor window instead of the parent (Tileset Editor).
289
+ // Make sure the parent is active when we close.
290
+ auto p = dynamic_cast<QWidget*>(parent());
291
+ if (p && p->isVisible()) {
292
+ p->raise();
293
+ p->activateWindow();
294
+ }
295
}
0 commit comments