summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-16 12:11:59 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-16 12:12:39 +0200
commit0c8dce60a2481380a31f4ae527e033e63d2ed295 (patch)
tree502a68130ffc23bba7e994ca6f918f0f02e32cee /Userland/Applications/PixelPaint
parentabc40af80983b03e5f873bfd03ba48e219188f43 (diff)
downloadserenity-0c8dce60a2481380a31f4ae527e033e63d2ed295.zip
PixelPaint: Don't open new images in background tabs
When opening/creating a new image, let's make it the foreground tab.
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r--Userland/Applications/PixelPaint/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp
index dbaf550ff5..1b782afa72 100644
--- a/Userland/Applications/PixelPaint/main.cpp
+++ b/Userland/Applications/PixelPaint/main.cpp
@@ -517,6 +517,7 @@ int main(int argc, char** argv)
if (image->layer_count())
image_editor.set_active_layer(&image->layer(0));
+ tab_widget.set_active_widget(&image_editor);
image_editor.set_focus(true);
return image_editor;
};