From 0639b3f0c2e72473d9578a6297956912854815b9 Mon Sep 17 00:00:00 2001 From: casey Date: Sun, 8 May 2016 10:04:53 -0700 Subject: [PATCH] Small bugfix in CommandWindow's filename parser. --- src/square/CommandWindow.cpp | 3 ++- src/square/LogWindow.cpp | 2 +- src/square/TransportWindow.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/square/CommandWindow.cpp b/src/square/CommandWindow.cpp index 942bd30e2..143e8eff4 100755 --- a/src/square/CommandWindow.cpp +++ b/src/square/CommandWindow.cpp @@ -167,7 +167,8 @@ bool CommandWindow::ProcessCommand(const std::string& cmd) { bool CommandWindow::PlayFile(const std::vector& args) { if (args.size() > 0) { - transport->Start(args.at(0)); + std::string filename = boost::algorithm::join(args, " "); + transport->Start(filename); return true; } diff --git a/src/square/LogWindow.cpp b/src/square/LogWindow.cpp index 527f95209..f9fc730ad 100755 --- a/src/square/LogWindow.cpp +++ b/src/square/LogWindow.cpp @@ -17,7 +17,7 @@ LogWindow::LogWindow() { this->Create(); musik::debug::string_logged.connect(this, &LogWindow::OnLogged); - musik::debug::err("LogWindow", "initialized"); + musik::debug::warn("LogWindow", "initialized"); } LogWindow::~LogWindow() { diff --git a/src/square/TransportWindow.cpp b/src/square/TransportWindow.cpp index 5a4ebfe89..70cb75007 100755 --- a/src/square/TransportWindow.cpp +++ b/src/square/TransportWindow.cpp @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "stdafx.h" #include "TransportWindow.h" @@ -38,7 +38,7 @@ void TransportWindow::Repaint() { WINDOW *c = this->GetContents(); std::string volume = boost::str(boost::format( - "♫ volume: %1%\n") % this->transport->Volume()); + "volume: %1%\n") % this->transport->Volume()); wprintw(c, volume.c_str()); wprintw(c, "filename: ");