diff options
author | David Robillard <d@drobilla.net> | 2011-11-25 22:01:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-25 22:01:07 +0000 |
commit | e0d452db27924fbef0d6d02000bb893c67879763 (patch) | |
tree | 4fda1fe22955bcfa904fc076ce19df84af11763a /src/PatchageCanvas.cpp | |
parent | 650e5f4450772b62856b8f84038d16c74e9b19c9 (diff) | |
download | patchage-e0d452db27924fbef0d6d02000bb893c67879763.tar.gz patchage-e0d452db27924fbef0d6d02000bb893c67879763.tar.bz2 patchage-e0d452db27924fbef0d6d02000bb893c67879763.zip |
Move more logging into the messages window.
Make View->Messages a plain menu item.
Pop up messages window on error.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3632 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 148466e..070ef8c 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -14,11 +14,12 @@ * along with Patchage. If not, see <http://www.gnu.org/licenses/>. */ -#include "patchage-config.h" +#include <boost/format.hpp> -#include "raul/log.hpp" #include "raul/SharedPtr.hpp" +#include "patchage-config.h" + #if defined(HAVE_JACK_DBUS) #include "JackDbusDriver.hpp" #elif defined(PATCHAGE_LIBJACK) @@ -34,6 +35,7 @@ #include "PatchagePort.hpp" using std::string; +using boost::format; PatchageCanvas::PatchageCanvas(Patchage* app, int width, int height) : FlowCanvas::Canvas(width, height) @@ -113,7 +115,8 @@ PatchageCanvas::remove_port(const PortID& id) { PatchagePort* const port = find_port(id); if (!port) { - Raul::error << "Failed to find port " << id << " to remove" << std::endl; + _app->error_msg((format("Failed to find port with ID `%1' to remove.") + % id).str()); } _port_index.erase(id); |