From: APTX Date: Sat, 2 Mar 2013 15:07:25 +0000 (+0100) Subject: Play file from args X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=e455a5ffadb88c580a15b984b26658a83aff3f77;p=aniplayer2.git Play file from args --- diff --git a/player/main.cpp b/player/main.cpp index c227a57..1d54475 100644 --- a/player/main.cpp +++ b/player/main.cpp @@ -18,5 +18,8 @@ int main(int argc, char *argv[]) w.show(); + if (a.arguments().count() > 1) + w.play(a.arguments()[1]); + return a.exec(); }