Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
60ca4ecd
Commit
60ca4ecd
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
fix segfault when launching DNG on Mountain Lion
parent
e67b80c7
Branches
Branches containing commit
Tags
1.2.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/src/gosty.cc
+5
-3
5 additions, 3 deletions
modules/gui/src/gosty.cc
with
5 additions
and
3 deletions
modules/gui/src/gosty.cc
+
5
−
3
View file @
60ca4ecd
...
@@ -208,7 +208,7 @@ void prepare_scripts(int argc, char** argv, PythonInterpreter& py)
...
@@ -208,7 +208,7 @@ void prepare_scripts(int argc, char** argv, PythonInterpreter& py)
class
MyApplication
:
public
QApplication
class
MyApplication
:
public
QApplication
{
{
public:
public:
MyApplication
(
int
argc
,
char
**
argv
)
:
QApplication
(
argc
,
argv
)
{}
MyApplication
(
int
&
argc
,
char
**
argv
)
:
QApplication
(
argc
,
argv
)
{}
virtual
~
MyApplication
()
{}
virtual
~
MyApplication
()
{}
virtual
bool
notify
(
QObject
*
rec
,
QEvent
*
ev
)
virtual
bool
notify
(
QObject
*
rec
,
QEvent
*
ev
)
{
{
...
@@ -232,11 +232,13 @@ public:
...
@@ -232,11 +232,13 @@ public:
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
int
dummy_argc
=
1
;
int
dummy_argc
=
1
;
char
*
dummy_argv
[]
=
{
argv
[
0
],
NULL
};
MyApplication
app
(
dummy_argc
,
argv
);
std
::
cout
<<
dummy_argv
[
0
]
<<
std
::
endl
;
MyApplication
app
(
dummy_argc
,
dummy_argv
);
QCoreApplication
::
setOrganizationName
(
"OpenStructure"
);
QCoreApplication
::
setOrganizationName
(
"OpenStructure"
);
QCoreApplication
::
setOrganizationDomain
(
"openstructure.org"
);
QCoreApplication
::
setOrganizationDomain
(
"openstructure.org"
);
QCoreApplication
::
setApplicationName
(
QString
(
argv
[
2
]));
QCoreApplication
::
setApplicationName
(
QString
(
argv
[
2
]));
if
(
int
rv
=
setup_resources
(
app
)
<
0
)
{
if
(
int
rv
=
setup_resources
(
app
)
<
0
)
{
return
rv
;
return
rv
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment