Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Cervisia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SDK
Cervisia
Commits
3bf623f8
Commit
3bf623f8
authored
Jun 07, 2003
by
Christian Loose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crash less when we couldn't start the cvs DCOP service.
svn path=/trunk/kdesdk/cervisia/; revision=230167
parent
528aed08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
cervisiapart.cpp
cervisiapart.cpp
+9
-5
cervisiashell.cpp
cervisiashell.cpp
+8
-3
No files found.
cervisiapart.cpp
View file @
3bf623f8
...
...
@@ -98,11 +98,10 @@ CervisiaPart::CervisiaPart( QWidget *parentWidget, const char *widgetName,
// we can't start the cvs DCOP service
KMessageBox
::
sorry
(
0
,
"Starting cvsservice failed with message: "
+
error
,
"Cervisia"
);
return
;
}
// create a reference to the service
cvsService
=
new
CvsService_stub
(
appId
,
"CvsService"
);
else
// create a reference to the service
cvsService
=
new
CvsService_stub
(
appId
,
"CvsService"
);
// Create UI
KConfig
*
conf
=
config
();
...
...
@@ -150,7 +149,8 @@ CervisiaPart::CervisiaPart( QWidget *parentWidget, const char *widgetName,
CervisiaPart
::~
CervisiaPart
()
{
// stop the cvs DCOP service and delete reference
cvsService
->
quit
();
if
(
cvsService
)
cvsService
->
quit
();
delete
cvsService
;
writeSettings
();
...
...
@@ -1540,6 +1540,10 @@ void CervisiaPart::slotJobFinished()
bool
CervisiaPart
::
openSandbox
(
const
QString
&
dirname
)
{
// Do we have a cvs service?
if
(
!
cvsService
)
return
false
;
Repository_stub
cvsRepository
(
cvsService
->
app
(),
"CvsRepository"
);
// change the working copy directory for the cvs DCOP service
...
...
cervisiashell.cpp
View file @
3bf623f8
...
...
@@ -180,10 +180,15 @@ void CervisiaShell::writeSettings()
KConfig
*
config
=
KGlobal
::
config
();
config
->
setGroup
(
"Session"
);
config
->
writeEntry
(
"Current Directory"
,
part
->
url
().
path
());
// Save current working directory (if part was created)
if
(
part
)
{
config
->
writeEntry
(
"Current Directory"
,
part
->
url
().
path
());
// write to disk
config
->
sync
();
// write to disk
config
->
sync
();
}
}
...
...
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