Date: Tue, 23 Aug 2016 06:57:24 +0000 (UTC) From: Veniamin Gvozdikov <vg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420650 - in head/graphics/qiviewer: . files Message-ID: <201608230657.u7N6vO8h036816@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vg Date: Tue Aug 23 06:57:24 2016 New Revision: 420650 URL: https://svnweb.freebsd.org/changeset/ports/420650 Log: - Add patch to tolerate file:// in command line arg. PR: ports/210968 Submitted by: Jason Bacon <bacon4000@gmail.com> Added: head/graphics/qiviewer/files/ head/graphics/qiviewer/files/patch-main.cpp (contents, props changed) Modified: head/graphics/qiviewer/Makefile Modified: head/graphics/qiviewer/Makefile ============================================================================== --- head/graphics/qiviewer/Makefile Tue Aug 23 06:17:33 2016 (r420649) +++ head/graphics/qiviewer/Makefile Tue Aug 23 06:57:24 2016 (r420650) @@ -3,7 +3,7 @@ PORTNAME= qiviewer PORTVERSION= 0.5.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= GOOGLE_CODE Added: head/graphics/qiviewer/files/patch-main.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/qiviewer/files/patch-main.cpp Tue Aug 23 06:57:24 2016 (r420650) @@ -0,0 +1,13 @@ +--- main.cpp.orig 2011-05-19 03:38:25 UTC ++++ main.cpp +@@ -115,6 +115,10 @@ int main(int argc, char *argv[]) + + else if (next_option == -1) + { ++ // Strip file://, added by some file browsers ++ if ( memcmp(argv[1], "file://", 7) == 0 ) ++ memmove(argv[1], argv[1]+7, strlen(argv[1]) - 6); ++ puts(argv[1]); + MainWindow imageViewer; + if (QApplication::arguments().size() > 1) + imageViewer.openImageFromCommandLine(QApplication::arguments());
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608230657.u7N6vO8h036816>