File fix_crash_when_getting_logs.patch of Package kdesvn

From: Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
Date: Wed, 24 Dec 2014 13:44:59 +0000
Subject: REVIEW: 121670
X-Git-Url: http://quickgit.kde.org/?p=kdesvn.git&a=commitdiff&h=c1adde451dfac202ef63aded5b2a7adfa9e26f9b
---
REVIEW: 121670
Patch for Bug 325074 and 330624 - kdesvn crashed when getting logs
---


--- a/src/svnfrontend/svnlogdlgimp.cpp
+++ b/src/svnfrontend/svnlogdlgimp.cpp
@@ -134,6 +134,8 @@
         setWindowTitle(i18n("SVN Log"));
     }
     _name = what;
+    if(!_name.startsWith(QLatin1Char('/')))
+      _name = QLatin1Char('/') + _name;
     dispLog(_log);
 }
 
@@ -325,7 +327,7 @@
 {
     svn::SharedPointer<svn::LogEntriesMap> lm = m_Actions->getLog(m_startRevButton->revision(),
             m_endRevButton->revision(),m_peg,
-            _base+'/'+_name,Kdesvnsettings::self()->log_always_list_changed_files(),0,Kdesvnsettings::last_node_follow(),this);
+            _base+_name,Kdesvnsettings::self()->log_always_list_changed_files(),0,Kdesvnsettings::last_node_follow(),this);
     if (lm) {
         dispLog(lm);
     }
@@ -343,7 +345,7 @@
     }
     svn::SharedPointer<svn::LogEntriesMap> lm = m_Actions->getLog(begin,
                             (begin.revnum()>50?svn::Revision::START:svn::Revision::HEAD),m_peg,
-                            _base+'/'+_name,Kdesvnsettings::self()->log_always_list_changed_files(),50,Kdesvnsettings::last_node_follow(),this);
+                            _base+_name,Kdesvnsettings::self()->log_always_list_changed_files(),50,Kdesvnsettings::last_node_follow(),this);
     if (lm) {
         dispLog(lm);
     }
@@ -353,7 +355,7 @@
 {
     svn::SharedPointer<svn::LogEntriesMap> lm = m_Actions->getLog(svn::Revision::HEAD,
                                         1,m_peg,
-                                        _base+'/'+_name,Kdesvnsettings::self()->log_always_list_changed_files(),50,Kdesvnsettings::last_node_follow(),this);
+                                        _base+_name,Kdesvnsettings::self()->log_always_list_changed_files(),50,Kdesvnsettings::last_node_follow(),this);
     if (lm) {
         dispLog(lm);
     }

openSUSE Build Service is sponsored by