[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevelop/src
From:       Adam Treat <treat () kde ! org>
Date:       2005-09-13 20:47:13
Message-ID: 1126644433.344651.15863.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 460439 by treat:

* Only emit the signal once.

 M  +5 -7      partcontroller.cpp  


--- trunk/KDE/kdevelop/src/partcontroller.cpp #460438:460439
@@ -387,12 +387,12 @@
       "KDevelop/ReadWritePart", "KDevelop/ReadOnlyPart",
       "KParts/ReadWritePart", "KParts/ReadOnlyPart"
     };
-    
+
     QString classnames[] = {
       "KParts::ReadWritePart", "KParts::ReadOnlyPart",
       "KParts::ReadWritePart", "KParts::ReadOnlyPart"
     };
-    
+
     for (uint i=0; i<4; ++i)
     {
         factory = findPartFactory( MimeType->name(), services[i] );
@@ -550,12 +550,10 @@
   KParts::ReadOnlyPart *ro_part = dynamic_cast<KParts::ReadOnlyPart*>(part);
   if ( !ro_part ) return;
 
-  emit loadedFile( ro_part->url() );
-
   if ( ro_part->url().isLocalFile() )
-  {
-    emit loadedFile(ro_part->url().path());
-  }
+    emit loadedFile( ro_part->url().path() );
+  else
+    emit loadedFile( ro_part->url() );
 
   connect( part, SIGNAL(modifiedOnDisc(Kate::Document*, bool, unsigned char)), this, \
SLOT(slotDocumentDirty(Kate::Document*, bool, unsigned char)) );  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic