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

List:       kde-commits
Subject:    kdeextragear-2/kile/kile
From:       Jeroen Wijnhout <wijnhout () science ! uva ! nl>
Date:       2004-11-07 10:29:11
Message-ID: 20041107102911.823E716D87 () office ! kde ! org
[Download RAW message or body]

CVS commit by wijnhout: 

Fix crash when double clicking on a "File Selector sidebar" item.


  M +5 -0      kiledocmanager.cpp   1.41


--- kdeextragear-2/kile/kile/kiledocmanager.cpp  #1.40:1.41
@@ -746,4 +746,8 @@ void Manager::fileSaveAll(bool amAutoSav
 void Manager::fileOpen(const KURL & url, const QString & encoding)
 {
+        //don't want to receive signals from the fileselector since 
+        //that would allow the user to open a single file twice by double-clicking on it
+        m_ki->fileSelector()->blockSignals(true); 
+        
         kdDebug() << "==Kile::fileOpen==========================" << endl;
         kdDebug() << "\t" << url.url() << endl;
@@ -758,4 +762,5 @@ void Manager::fileOpen(const KURL & url,
         emit(updateStructure(false, 0L));
         emit(updateModeStatus());
+        m_ki->fileSelector()->blockSignals(false);
 }
 


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

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