|
|
|
|
@ -147,14 +147,17 @@ Directories::Directories() : Gtk::ListViewText(1) {
|
|
|
|
|
if(iter) { |
|
|
|
|
auto filesystem_path = iter->get_value(column_record.path); |
|
|
|
|
if(filesystem_path != "") { |
|
|
|
|
#ifdef __APPLE__ |
|
|
|
|
GdkModifierType state; |
|
|
|
|
#endif |
|
|
|
|
boost::system::error_code ec; |
|
|
|
|
if(boost::filesystem::is_directory(boost::filesystem::path(filesystem_path), ec)) |
|
|
|
|
row_expanded(path) ? collapse_row(path) : expand_row(path, false); |
|
|
|
|
else if(gtk_get_current_event_state(&state) && (state & |
|
|
|
|
#ifdef __APPLE__ |
|
|
|
|
else if(gtk_get_current_event_state(&state) && (state & (GDK_CONTROL_MASK | GDK_MOD2_MASK))) { |
|
|
|
|
GDK_MOD2_MASK |
|
|
|
|
#else |
|
|
|
|
GDK_CONTROL_MASK |
|
|
|
|
#endif |
|
|
|
|
)) { |
|
|
|
|
if(Project::compiling || Project::debugging) { |
|
|
|
|
Info::get().print("Compile or debug in progress"); |
|
|
|
|
return; |
|
|
|
|
@ -169,7 +172,6 @@ Directories::Directories() : Gtk::ListViewText(1) {
|
|
|
|
|
|
|
|
|
|
set_cursor(path); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
else |
|
|
|
|
Notebook::get().open(filesystem_path); |
|
|
|
|
} |
|
|
|
|
|