Browse Source

fix crash on open folder

master
Jørgen Lien Sellæg 11 years ago
parent
commit
20e009500b
  1. 2
      juci/directories.cc
  2. 2
      juci/directories.h

2
juci/directories.cc

@ -6,7 +6,7 @@ Directories::Controller::Controller(Directories::Config& cfg) :
m_ScrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
}
bool Directories::Controller::
void Directories::Controller::
open_folder(const boost::filesystem::path& dir_path) {
m_refTreeModel = Gtk::TreeStore::create(view());
m_TreeView.set_model(m_refTreeModel);

2
juci/directories.h

@ -48,7 +48,7 @@ namespace Directories {
Model& model() { return model_;}
Directories::Config& config() { return config_;}
Gtk::ScrolledWindow& widget() {return m_ScrolledWindow;}
bool open_folder(const boost::filesystem::path& dir_path);
void open_folder(const boost::filesystem::path& dir_path);
void list_dirs(const boost::filesystem::path& dir_path,
Gtk::TreeModel::Row &row, unsigned depth);
std::string get_project_name(const boost::filesystem::path& dir_path);

Loading…
Cancel
Save