Browse Source

Merge branch 'little_fixes' of https://github.com/VadimGit/jucipp into VadimGit-little_fixes

merge-requests/365/head
eidheim 10 years ago
parent
commit
0d58580b33
  1. 3
      src/cmake.cc
  2. 2
      src/directories.cc
  3. 4
      src/files.h
  4. 6
      src/juci.h

3
src/cmake.cc

@ -1,9 +1,10 @@
#include "cmake.h" #include "cmake.h"
#include "singletons.h" #include "singletons.h"
#include "filesystem.h" #include "filesystem.h"
#include <boost/regex.hpp>
#include "dialogs.h" #include "dialogs.h"
#include <boost/regex.hpp>
#include <iostream> //TODO: remove #include <iostream> //TODO: remove
using namespace std; //TODO: remove using namespace std; //TODO: remove

2
src/directories.cc

@ -216,7 +216,7 @@ void Directories::add_path(const boost::filesystem::path& dir_path, const Gtk::T
bool already_added=false; bool already_added=false;
if(*children) { if(*children) {
for(auto &child: *children) { for(auto &child: *children) {
if(child.get_value(column_record.name)==filename) { if(child->get_value(column_record.name)==filename) {
not_deleted.emplace(filename); not_deleted.emplace(filename);
already_added=true; already_added=true;
break; break;

4
src/files.h

@ -1,3 +1,5 @@
#ifndef JUCI_FILES_H_
#define JUCI_FILES_H_
#include <string> #include <string>
#define JUCI_VERSION "0.9.6" #define JUCI_VERSION "0.9.6"
@ -373,4 +375,4 @@ const std::string snippetpy =
" output=getSnippet(theWord) \n" " output=getSnippet(theWord) \n"
" juci.replaceWord(output) \n"; " juci.replaceWord(output) \n";
#endif // JUCI_FILES_H_

6
src/juci.h

@ -8,9 +8,9 @@
class Application : public Gtk::Application { class Application : public Gtk::Application {
public: public:
Application(); Application();
int on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine> &cmd); int on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine> &cmd) override;
void on_activate(); void on_activate() override;
void on_startup(); void on_startup() override;
std::unique_ptr<Window> window; std::unique_ptr<Window> window;
private: private:
std::vector<boost::filesystem::path> directories; std::vector<boost::filesystem::path> directories;

Loading…
Cancel
Save