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
Toggle navigation
Open sidebar
SDK
Cervisia
Commits
204c9863
Commit
204c9863
authored
Sep 17, 2001
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix enable/disable action
svn path=/trunk/kdesdk/cervisia/; revision=114528
parent
d17c942b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cervisiapart.cpp
cervisiapart.cpp
+3
-3
No files found.
cervisiapart.cpp
View file @
204c9863
...
...
@@ -103,7 +103,7 @@ CervisiaPart::CervisiaPart( QWidget *parentWidget, const char *widgetName,
conf
->
setGroup
(
"LookAndFeel"
);
bool
splitHorz
=
conf
->
readBoolEntry
(
"SplitHorizontally"
,
true
);
splitter
=
new
QSplitter
(
splitHorz
?
QSplitter
::
Vertical
:
QSplitter
::
Horizontal
,
splitter
=
new
QSplitter
(
splitHorz
?
QSplitter
::
Vertical
:
QSplitter
::
Horizontal
,
parentWidget
,
widgetName
);
update
=
new
UpdateView
(
splitter
);
...
...
@@ -121,7 +121,7 @@ CervisiaPart::CervisiaPart( QWidget *parentWidget, const char *widgetName,
setWidget
(
splitter
);
setupActions
();
connect
(
update
,
SIGNAL
(
selectionChanged
()
),
this
,
SLOT
(
updateActions
()
)
);
updateActions
();
setXMLFile
(
"cervisiaui.rc"
);
}
...
...
@@ -520,7 +520,7 @@ void CervisiaPart::updateActions()
actionCollection
()
->
action
(
"view_last_change"
)
->
setEnabled
(
single
);
// bool nojob = !( actionCollection()->action( "stop_job" )->isEnabled() );
bool
nojob
=
!
hasRunningJob
;
bool
nojob
=
!
hasRunningJob
&&
update
->
selectedItem
()
;
actionCollection
()
->
action
(
"file_update"
)
->
setEnabled
(
nojob
);
actionCollection
()
->
action
(
"file_status"
)
->
setEnabled
(
nojob
);
...
...
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