From 8619686c83bb32bfb0c352772ad3542e58c43258 Mon Sep 17 00:00:00 2001 From: "U-olece-PC\\olece" Date: Thu, 17 Mar 2016 20:15:18 +0100 Subject: [PATCH] MSYS2 compile fix --- src/dialogs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dialogs.cc b/src/dialogs.cc index 1c83d0a..f9b6b92 100644 --- a/src/dialogs.cc +++ b/src/dialogs.cc @@ -40,14 +40,14 @@ std::string Dialog::gtk_dialog(const boost::filesystem::path &path, const std::s dialog.set_position(Gtk::WindowPosition::WIN_POS_CENTER_ON_PARENT); if(title=="Save File As") - gtk_file_chooser_set_filename((GtkFileChooser*)dialog.gobj(), path.c_str()); + gtk_file_chooser_set_filename((GtkFileChooser*)dialog.gobj(), path.string().c_str()); else if(!path.empty()) - gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), path.c_str()); + gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), path.string().c_str()); else { boost::system::error_code ec; auto current_path=boost::filesystem::current_path(ec); if(!ec) - gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), current_path.c_str()); + gtk_file_chooser_set_current_folder((GtkFileChooser*)dialog.gobj(), current_path.string().c_str()); } dialog.set_position(Gtk::WindowPosition::WIN_POS_CENTER_ON_PARENT);