Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
30ca854b
Commit
30ca854b
authored
Dec 02, 2010
by
Tobias Hunger
Browse files
Git: Use proper name for patches from codepasters
Task-number: QTCREATORBUG-3207
parent
8d59cd8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/vcsbase/vcsbaseplugin.cpp
View file @
30ca854b
...
...
@@ -127,6 +127,7 @@ bool State::equals(const State &rhs) const
return
currentFile
==
rhs
.
currentFile
&&
currentFileName
==
rhs
.
currentFileName
&&
currentPatchFile
==
rhs
.
currentPatchFile
&&
currentPatchFileDisplayName
==
rhs
.
currentPatchFileDisplayName
&&
currentFileTopLevel
==
rhs
.
currentFileTopLevel
&&
currentProjectPath
==
rhs
.
currentProjectPath
&&
currentProjectName
==
rhs
.
currentProjectName
...
...
@@ -181,6 +182,8 @@ StateListener::StateListener(QObject *parent) :
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
connect
(
core
->
fileManager
(),
SIGNAL
(
currentFileChanged
(
QString
)),
this
,
SLOT
(
slotStateChanged
()));
connect
(
core
->
editorManager
()
->
instance
(),
SIGNAL
(
currentEditorStateChanged
(
Core
::
IEditor
*
)),
this
,
SLOT
(
slotStateChanged
()));
if
(
ProjectExplorer
::
ProjectExplorerPlugin
*
pe
=
ProjectExplorer
::
ProjectExplorerPlugin
::
instance
())
connect
(
pe
,
SIGNAL
(
currentProjectChanged
(
ProjectExplorer
::
Project
*
)),
...
...
@@ -228,6 +231,7 @@ void StateListener::slotStateChanged()
if
(
isTempFile
||
state
.
currentFile
.
contains
(
QLatin1Char
(
'#'
)))
state
.
currentFile
.
clear
();
}
// Get the file and its control. Do not use the file unless we find one
Core
::
IVersionControl
*
fileControl
=
0
;
if
(
!
state
.
currentFile
.
isEmpty
())
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment