summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/LashDriver.h3
-rw-r--r--src/Patchage.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/LashDriver.h b/src/LashDriver.h
index 67e6dbb..0121509 100644
--- a/src/LashDriver.h
+++ b/src/LashDriver.h
@@ -33,7 +33,8 @@ public:
void attach(bool launch_daemon);
void detach();
- bool is_attached() const { return _server_interface->enabled(); }
+ bool is_attached() const
+ { return _server_interface && _server_interface->enabled(); }
bool connect(boost::shared_ptr<PatchagePort>, boost::shared_ptr<PatchagePort>)
{ return false; }
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index cdd21f8..2b5a85a 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -19,7 +19,7 @@
#include <sstream>
#include "Patchage.h"
#include "PatchageEvent.h"
-#include "config.h"
+#include "../config.h"
#include <libgnomecanvasmm.h>
#include <libglademm/xml.h>
#include <fstream>