FreeBSD Bugzilla – Attachment 172329 Details for
Bug 210968
graphics/qiviewer: Add patch to tolerate file:// in command line arg
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Unified diff
qiviewer-diff.txt (text/plain), 823 bytes, created by
Jason W. Bacon
on 2016-07-10 16:38:14 UTC
(
hide
)
Description:
Unified diff
Filename:
MIME Type:
Creator:
Jason W. Bacon
Created:
2016-07-10 16:38:14 UTC
Size:
823 bytes
patch
obsolete
>diff -ruN --exclude=CVS --exclude=.svn /usr/ports/graphics/qiviewer/files/patch-main.cpp /usr/wip/graphics/qiviewer/files/patch-main.cpp >--- /usr/ports/graphics/qiviewer/files/patch-main.cpp 1969-12-31 18:00:00.000000000 -0600 >+++ /usr/wip/graphics/qiviewer/files/patch-main.cpp 2016-07-10 11:37:02.649093000 -0500 >@@ -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());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210968
:
172314
| 172329