[gtranslator: 17/20] actions-file: Remove unreachable code
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 17/20] actions-file: Remove unreachable code
- Date: Sun, 6 Mar 2022 12:34:49 +0000 (UTC)
commit 66ea71393c211e75a289e967728af7b6876ceea4
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sat Mar 5 18:01:51 2022 +0100
actions-file: Remove unreachable code
src/gtr-actions-file.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index d3df91ed..5a4f3dcc 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -532,16 +532,10 @@ gtr_upload_file_dialog (GtkAction * action, GtrWindow * window)
void
gtr_save_file_as_dialog (GtkAction * action, GtrWindow * window)
{
- GtkWidget *dialog = NULL;
+ GtkWidget *dialog;
GtrTab *current_page;
gint reply = 0;
- if (dialog != NULL)
- {
- gtk_window_present (GTK_WINDOW (dialog));
- return;
- }
-
current_page = gtr_window_get_active_tab (window);
dialog = gtr_file_chooser_new (GTK_WINDOW (window),
FILESEL_SAVE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]