[gnome-screenshot: 1/2] application: support saving to file with clipboard flag set
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot: 1/2] application: support saving to file with clipboard flag set
- Date: Fri, 19 Jul 2019 12:00:09 +0000 (UTC)
commit d4ee41232940d7e9ff9657dc8425c0c5de4a10c7
Author: SoftTeam AB <per softteam se>
Date: Fri Jul 19 11:59:51 2019 +0000
application: support saving to file with clipboard flag set
Second attempt to close #39.
src/screenshot-application.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index 851715a..bbe2d30 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -542,10 +542,13 @@ finish_prepare_screenshot (ScreenshotApplication *self,
{
screenshot_save_to_clipboard (self);
screenshot_play_sound_effect ("screen-capture", _("Screenshot taken"));
-
- g_application_release (G_APPLICATION (self));
-
- return;
+
+ if (screenshot_config->file == NULL)
+ {
+ g_application_release (G_APPLICATION (self));
+
+ return;
+ }
}
/* FIXME: apply the ICC profile according to the preferences.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]