diff --git a/atom/browser/ui/file_dialog_gtk.cc b/atom/browser/ui/file_dialog_gtk.cc index 713b7b3ddb72..2c8b785544a2 100644 --- a/atom/browser/ui/file_dialog_gtk.cc +++ b/atom/browser/ui/file_dialog_gtk.cc @@ -44,7 +44,7 @@ class FileChooserDialog { filters_(filters) { const char* confirm_text = GTK_STOCK_OK; - if (button_label != NULL) + if (!button_label.empty()) confirm_text = button_label.c_str(); else if (action == GTK_FILE_CHOOSER_ACTION_SAVE) confirm_text = GTK_STOCK_SAVE;