[chronojump] Chronojump-importer: returns Ok instead of Accept when importing sessions into a new session.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Chronojump-importer: returns Ok instead of Accept when importing sessions into a new session.
- Date: Wed, 23 Nov 2016 15:56:06 +0000 (UTC)
commit 73a9c07aae08fde12e9dd8f5a96f2dece15b9830
Author: Carles Pina i Estany <carles pina cat>
Date: Wed Nov 23 16:53:38 2016 +0100
Chronojump-importer: returns Ok instead of Accept when importing sessions into a new session.
Without this change the user selected the session but it wasn't imported
(when it was to a new session).
This is because in the class ChronojumpWindow in the method
ImportSessionFromDatabase we check if the modified method returned "Ok".
src/chronojumpImporter.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojumpImporter.cs b/src/chronojumpImporter.cs
index 2d486ae..431c8c0 100644
--- a/src/chronojumpImporter.cs
+++ b/src/chronojumpImporter.cs
@@ -82,7 +82,7 @@ class ChronojumpImporter
if (importsToNew ()) {
// We don't need any confirmation to import into a new session (the user could delete
it easily if it was a mistake)
- return Gtk.ResponseType.Accept;
+ return Gtk.ResponseType.Ok;
} else {
// If the user is importing it into an existing session we require a confirmation.
// This is very hard to Undo.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]