mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 13:13:45 +02:00
eeshow/main.c (main): gtk_init removes --, so only call it if we have none
This commit is contained in:
parent
f4944a5da9
commit
e949130daf
@ -98,14 +98,15 @@ int main(int argc, char **argv)
|
||||
char **gfx_argv;
|
||||
const struct gfx_ops **ops = ops_list;
|
||||
|
||||
gtk_init(&argc, &argv);
|
||||
|
||||
for (dashdash = 1; dashdash != argc; dashdash++)
|
||||
if (!strcmp(argv[dashdash], "--")) {
|
||||
have_dashdash = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!have_dashdash)
|
||||
gtk_init(&argc, &argv);
|
||||
|
||||
while ((c = getopt(dashdash, argv, "rvC:H:")) != EOF)
|
||||
switch (c) {
|
||||
case 'r':
|
||||
|
Loading…
Reference in New Issue
Block a user