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
Kompare
Commits
7ca56c74
Commit
7ca56c74
authored
May 10, 2013
by
Patrick Spendrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix endless loop
do not go into infinite loop in "save diff" BUG:238297
parent
08cd8fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
komparepart/komparesaveoptionswidget.cpp
komparepart/komparesaveoptionswidget.cpp
+2
-2
No files found.
komparepart/komparesaveoptionswidget.cpp
View file @
7ca56c74
...
...
@@ -50,13 +50,13 @@ KompareSaveOptionsWidget::KompareSaveOptionsWidget( QString source, QString dest
// Find a common root.
KUrl
root
(
sourceURL
);
while
(
root
.
isValid
()
&&
!
root
.
isParentOf
(
destinationURL
)
)
{
while
(
root
.
isValid
()
&&
!
root
.
isParentOf
(
destinationURL
)
&&
root
!=
root
.
upUrl
()
)
{
root
=
root
.
upUrl
();
}
// If we found a common root, change to that directory and
// strip the common part from source and destination.
if
(
root
.
isValid
()
)
{
if
(
root
.
isValid
()
&&
root
!=
root
.
upUrl
()
)
{
m_directoryRequester
->
setUrl
(
root
.
url
()
);
}
...
...
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