Skip to content

Commit

Permalink
fix: swapped labels on open/save gtkdialog (#20882)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Oct 31, 2019
1 parent 25b3ee2 commit 1926169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/browser/ui/file_dialog_gtk.cc
Expand Up @@ -51,9 +51,9 @@ class FileChooserDialog {
if (!settings.button_label.empty())
confirm_text = settings.button_label.c_str();
else if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
confirm_text = gtk_util::kOpenLabel;
else if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
confirm_text = gtk_util::kSaveLabel;
else if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
confirm_text = gtk_util::kOpenLabel;

dialog_ = gtk_file_chooser_dialog_new(
settings.title.c_str(), NULL, action, gtk_util::kCancelLabel,
Expand Down

0 comments on commit 1926169

Please sign in to comment.