Small bugfix in CommandWindow's filename parser.

This commit is contained in:
casey 2016-05-08 10:04:53 -07:00
parent 2fe495cb2b
commit 0639b3f0c2
3 changed files with 5 additions and 4 deletions

View File

@ -167,7 +167,8 @@ bool CommandWindow::ProcessCommand(const std::string& cmd) {
bool CommandWindow::PlayFile(const std::vector<std::string>& args) {
if (args.size() > 0) {
transport->Start(args.at(0));
std::string filename = boost::algorithm::join(args, " ");
transport->Start(filename);
return true;
}

View File

@ -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() {

View File

@ -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: ");