Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
ParaView
Commits
6bd5c94b
Commit
6bd5c94b
authored
Apr 27, 2004
by
Ken Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the app dir for 1.4 release
parent
a92f700e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
GUI/Widgets/vtkKWApplication.cxx
GUI/Widgets/vtkKWApplication.cxx
+16
-2
No files found.
GUI/Widgets/vtkKWApplication.cxx
View file @
6bd5c94b
...
...
@@ -62,7 +62,7 @@ int vtkKWApplication::WidgetVisibility = 1;
//----------------------------------------------------------------------------
vtkStandardNewMacro
(
vtkKWApplication
);
vtkCxxRevisionMacro
(
vtkKWApplication
,
"1.161"
);
vtkCxxRevisionMacro
(
vtkKWApplication
,
"1.161
.2.1
"
);
extern
"C"
int
Vtktcl_Init
(
Tcl_Interp
*
interp
);
extern
"C"
int
Vtkkwwidgetstcl_Init
(
Tcl_Interp
*
interp
);
...
...
@@ -248,6 +248,8 @@ void vtkKWApplication::FindApplicationInstallationDirectory()
{
char
directory
[
1024
];
vtkKWDirectoryUtilities
::
GetFilenamePath
(
nameofexec
,
directory
);
// remove the /bin from the end
directory
[
strlen
(
directory
)
-
4
]
=
'\0'
;
vtkKWDirectoryUtilities
*
util
=
vtkKWDirectoryUtilities
::
New
();
this
->
SetApplicationInstallationDirectory
(
util
->
ConvertToUnixSlashes
(
directory
));
...
...
@@ -269,7 +271,19 @@ void vtkKWApplication::FindApplicationInstallationDirectory()
}
else
{
this
->
SetApplicationInstallationDirectory
(
0
);
reg
->
SetGlobalScope
(
1
);
if
(
reg
&&
reg
->
ReadValue
(
setup_key
,
"InstalledPath"
,
installed_path
))
{
vtkKWDirectoryUtilities
*
util
=
vtkKWDirectoryUtilities
::
New
();
this
->
SetApplicationInstallationDirectory
(
util
->
ConvertToUnixSlashes
(
installed_path
));
util
->
Delete
();
}
else
{
this
->
SetApplicationInstallationDirectory
(
0
);
}
reg
->
SetGlobalScope
(
0
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment