<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>111134</bug_id>
          
          <creation_ts>2005-08-20 09:26:11 +0000</creation_ts>
          <short_desc>Quanta crashes at deleting a file</short_desc>
          <delta_ts>2005-09-22 11:28:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>quanta</product>
          <component>general</component>
          <version>3.4.2</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Henk">h.weebers</reporter>
          <assigned_to name="András Manţia">amantia</assigned_to>
          <cc>tony</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>367100</commentid>
    <comment_count>0</comment_count>
    <who name="Henk">h.weebers</who>
    <bug_when>2005-08-20 09:26:11 +0000</bug_when>
    <thetext>Version:           3.4.2 (using KDE 3.4.2 Level &quot;a&quot; , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.17-default

I deleted a file by clicking on the menu in a tab.

Using host libthread_db library &quot;/lib/tls/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 1104499168 (LWP 8624)]
[KCrash handler]
#7  0x080e1b59 in QuantaView::mayRemove ()
#8  0x080e608b in ViewManager::removeView ()
#9  0x080e656b in QuantaApp::slotDeleteFile ()
#10 0x080e663d in ViewManager::slotDeleteFile ()
#11 0x080e66ba in ViewManager::qt_invoke ()
#12 0x411ab5be in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x414fd4d2 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x411c8b13 in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x412bbe58 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x40c48ae1 in KPopupMenu::mouseReleaseEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#17 0x411e1ba5 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x41148e0f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x4114b1b6 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40e5d9a1 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#21 0x410e650b in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x410e5146 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x410f5d68 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x41160da1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x4114a80f in QApplication::enter_loop ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x412bcc0e in QPopupMenu::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x0808f3d6 in ViewManager::slotTabContextMenu ()
#28 0x080e672a in ViewManager::qt_invoke ()
#29 0x411ab5be in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40b18197 in KTabWidget::contextMenu () from /opt/kde3/lib/libkdeui.so.4
#31 0x40b1892c in KTabWidget::contextMenu () from /opt/kde3/lib/libkdeui.so.4
#32 0x40b1a7cf in KTabWidget::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#33 0x400d82be in KMdiDocumentViewTabWidget::qt_invoke ()
   from /opt/kde3/lib/libkmdi.so.1
#34 0x411ab5be in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x40b1c2f4 in KTabBar::contextMenu () from /opt/kde3/lib/libkdeui.so.4
#36 0x40b1e419 in KTabBar::mousePressEvent () from /opt/kde3/lib/libkdeui.so.4
#37 0x411e1bb6 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x412db962 in QTabBar::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x41148e0f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x4114b1b6 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0x40e5d9a1 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#42 0x410e628e in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0x410e5146 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x410f5d68 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x41160da1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#46 0x41160be6 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#47 0x4114a89f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#48 0x080f6431 in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>367162</commentid>
    <comment_count>1</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2005-08-20 14:40:35 +0000</bug_when>
    <thetext>SVN commit 451325 by amantia:

Do not close a file when it is removed from a project. Fixes the crash when deleting a file which is part of a project from the tab context menu.

Change some Delete button to Remove.

BUG: 111134

 M  +2 -0      ChangeLog  
 M  +3 -3      README  
 M  +1 -2      project/project.cpp  
 M  +15 -8     quanta.kdevelop  
 M  +1 -1      treeviews/projecttreeview.cpp  
 M  +1 -1      utility/quantanetaccess.cpp  


--- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #451324:451325
@@ -19,6 +19,8 @@
         - treat &quot;&lt;&quot; as the end of a tag name. Fixes autoreplacement of opening/closing
           tags in cases when a PHP area starts directly after a tag name. [#106911]
         - fix the Kommander XML scripts.
+        - fix crash when deleting a file which is part of a project from the tab
+          context menu [#111134]
 
  - improvements:
         - nicer processing of CVS output
--- branches/KDE/3.5/kdewebdev/quanta/README #451324:451325
@@ -66,9 +66,9 @@
 announcements, merchandise and you can make some donation to support
 Quanta.
  An alternative way to use the latest and greatest version is to get it
-from CVS. More info about getting the sources from KDE CVS can be found
-at: http://developer.kde.org/source/. The module name for Quanta is
-&quot;kdewebdev&quot;.
+from the Subversion repository. More info about getting the sources from 
+KDE SVN can be found at: http://developer.kde.org/source/. The module name 
+for Quanta is &quot;kdewebdev&quot;.
 
 5. Installation
 ---------------
--- branches/KDE/3.5/kdewebdev/quanta/project/project.cpp #451324:451325
@@ -406,14 +406,13 @@
 
   if (d-&gt;m_modified)
     setModified();  // there happens more than setting the flag !
-  emit closeFile(urlToRemove);
   emit reloadTree( &amp;(d-&gt;m_projectFiles), false, QStringList() );
   emit newStatus();
   
   QString urlPath = QExtFileInfo::toRelative(urlToRemove, d-&gt;baseURL).path();
   QString nice = urlPath;
   nice = KStringHandler::lsqueeze(nice, 60);
-  if (KMessageBox::warningContinueCancel(d-&gt;m_mainWindow, i18n(&quot;&lt;qt&gt;Do you want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the server(s) as well?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Server&quot;), KStdGuiItem::del(), &quot;RemoveFromServer&quot;) == KMessageBox::Continue )
+  if (KMessageBox::warningContinueCancel(d-&gt;m_mainWindow, i18n(&quot;&lt;qt&gt;Do you want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the server(s) as well?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Server&quot;), KStdGuiItem::remove(), &quot;RemoveFromServer&quot;) == KMessageBox::Continue )
   {
     QDomNode profilesNode = d-&gt;m_sessionDom.firstChild().firstChild().namedItem(&quot;uploadprofiles&quot;);  
     QDomNodeList profileList = profilesNode.toElement().elementsByTagName(&quot;profile&quot;);
--- branches/KDE/3.5/kdewebdev/quanta/quanta.kdevelop #451324:451325
@@ -167,7 +167,7 @@
     &lt;/groups&gt;
     &lt;tree&gt;
       &lt;hidenonprojectfiles&gt;false&lt;/hidenonprojectfiles&gt;
-      &lt;hidepatterns/&gt;
+      &lt;hidepatterns&gt;&lt;/hidepatterns&gt;
       &lt;showvcsfields&gt;true&lt;/showvcsfields&gt;
     &lt;/tree&gt;
   &lt;/kdevfileview&gt;
@@ -190,16 +190,16 @@
   &lt;/kdevdoctreeview&gt;
   &lt;kdevdebugger&gt;
     &lt;general&gt;
-      &lt;dbgshell&gt;&lt;/dbgshell&gt;
-      &lt;programargs&gt;&lt;/programargs&gt;
+      &lt;dbgshell/&gt;
+      &lt;programargs/&gt;
       &lt;gdbpath&gt;/usr/bin/&lt;/gdbpath&gt;
       &lt;breakonloadinglibs&gt;true&lt;/breakonloadinglibs&gt;
       &lt;separatetty&gt;false&lt;/separatetty&gt;
       &lt;floatingtoolbar&gt;false&lt;/floatingtoolbar&gt;
       &lt;runappinappdirectory&gt;true&lt;/runappinappdirectory&gt;
-      &lt;configGdbScript&gt;&lt;/configGdbScript&gt;
-      &lt;runShellScript&gt;&lt;/runShellScript&gt;
-      &lt;runGdbScript&gt;&lt;/runGdbScript&gt;
+      &lt;configGdbScript/&gt;
+      &lt;runShellScript/&gt;
+      &lt;runGdbScript/&gt;
     &lt;/general&gt;
     &lt;display&gt;
       &lt;staticmembers&gt;false&lt;/staticmembers&gt;
@@ -264,9 +264,13 @@
       &lt;automaticHeaderCompletion&gt;true&lt;/automaticHeaderCompletion&gt;
       &lt;headerCompletionDelay&gt;250&lt;/headerCompletionDelay&gt;
     &lt;/codecompletion&gt;
-    &lt;references/&gt;
+    &lt;references&gt;
+      &lt;pcs&gt;Qt&lt;/pcs&gt;
+      &lt;pcs&gt;QUanta lib&lt;/pcs&gt;
+      &lt;pcs&gt;KDElibs&lt;/pcs&gt;
+    &lt;/references&gt;
     &lt;creategettersetter&gt;
-      &lt;prefixGet&gt;&lt;/prefixGet&gt;
+      &lt;prefixGet/&gt;
       &lt;prefixSet&gt;set&lt;/prefixSet&gt;
       &lt;prefixVariable&gt;m_,_&lt;/prefixVariable&gt;
       &lt;parameterName&gt;theValue&lt;/parameterName&gt;
@@ -278,6 +282,9 @@
       &lt;version&gt;3&lt;/version&gt;
       &lt;root&gt;/usr/lib/qt3&lt;/root&gt;
     &lt;/qt&gt;
+    &lt;designerintegration&gt;
+      &lt;qtdesigner/&gt;
+    &lt;/designerintegration&gt;
   &lt;/kdevcppsupport&gt;
   &lt;kdevcvsservice&gt;
     &lt;recursivewhenupdate&gt;true&lt;/recursivewhenupdate&gt;
--- branches/KDE/3.5/kdewebdev/quanta/treeviews/projecttreeview.cpp #451324:451325
@@ -424,7 +424,7 @@
     QString nice = QExtFileInfo::toRelative(url, m_projectBaseURL).path();
     nice = KStringHandler::lsqueeze(nice, 60);
     if ( !askForRemove ||
-         KMessageBox::warningContinueCancel(this,i18n(&quot;&lt;qt&gt;Do you really want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the project?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Project&quot;), KStdGuiItem::del(), &quot;RemoveFromProject&quot;) == KMessageBox::Continue )
+         KMessageBox::warningContinueCancel(this,i18n(&quot;&lt;qt&gt;Do you really want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the project?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Project&quot;), KStdGuiItem::remove(), &quot;RemoveFromProject&quot;) == KMessageBox::Continue )
     {
       if ( currentKFileTreeViewItem()-&gt;isDir() ) url.adjustPath(+1);
       emit removeFromProject(url);
--- branches/KDE/3.5/kdewebdev/quanta/utility/quantanetaccess.cpp #451324:451325
@@ -205,7 +205,7 @@
     {
       QString nice = QExtFileInfo::toRelative(url, baseURL).path();
       nice = KStringHandler::lsqueeze(nice, 60);
-      if ( KMessageBox::Continue != KMessageBox::warningContinueCancel(window, i18n(&quot;&lt;qt&gt;Do you really want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the project?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Project&quot;), KStdGuiItem::del(), &quot;RemoveFromProject&quot;) )
+      if ( KMessageBox::Continue != KMessageBox::warningContinueCancel(window, i18n(&quot;&lt;qt&gt;Do you really want to remove &lt;br&gt;&lt;b&gt;%1&lt;/b&gt;&lt;br&gt; from the project?&lt;/qt&gt;&quot;).arg(nice), i18n(&quot;Remove From Project&quot;), KStdGuiItem::remove(), &quot;RemoveFromProject&quot;) )
       {
         return false;
       }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374584</commentid>
    <comment_count>2</comment_count>
    <who name="">tony</who>
    <bug_when>2005-09-21 12:19:51 +0000</bug_when>
    <thetext>I have a similar problem. This is a &apos;project&apos; and when I delete a file by right clicking the tab it deletes it and then it pops a query box asking to remove it from the server. Selecting yes or no causes a crash. Back trace....

Using host libthread_db library &quot;/lib/tls/libthread_db.so.1&quot;.
`shared object read from target memory&apos; has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1217136960 (LWP 6824)]
[KCrash handler]
#4  0xb7aff797 in QObject::activate_signal ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#5  0x0809998c in QMemArray&lt;char&gt;::detach ()
#6  0x0809c75b in QMemArray&lt;char&gt;::detach ()
#7  0x080f6fd9 in QMapIterator&lt;QString, QString&gt;::inc ()
#8  0x080bf7f1 in QMap&lt;QString, QString&gt;::operator[] ()
#9  0x080f6655 in QMapIterator&lt;QString, QString&gt;::inc ()
#10 0x080f98f8 in QMapIterator&lt;QString, QString&gt;::inc ()
#11 0xb7aff10e in QObject::activate_signal ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#12 0xb7e31bad in QSignal::signal () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#13 0xb7b17eed in QSignal::activate () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#14 0xb7c01ce6 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#15 0x06d387f7 in KPopupMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.4
#16 0xb7b353ca in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#17 0xb7aa0539 in QApplication::internalNotify ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#18 0xb7aa0779 in QApplication::notify ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#19 0x06aa91e8 in KApplication::notify () from /usr/lib/libkdecore.so.4
#20 0xb7a3f6c6 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#21 0xb7a3d861 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#22 0xb7a501a6 in QEventLoop::processEvents ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#23 0xb7ab5b85 in QEventLoop::enterLoop ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#24 0xb7a9f761 in QApplication::enter_loop ()
   from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#25 0xb7c056b3 in QPopupMenu::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#26 0xbfa86a40 in ?? ()
#27 0x00000000 in ?? ()

 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374593</commentid>
    <comment_count>3</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2005-09-21 13:41:29 +0000</bug_when>
    <thetext>The backtrace is not the same and indicates more a Qt bug, but well, you 
may try to update from SVN (3.5 branch!) or wait for 3.5 to come out.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374732</commentid>
    <comment_count>4</comment_count>
    <who name="">tony</who>
    <bug_when>2005-09-22 00:58:19 +0000</bug_when>
    <thetext>As it is not causing me any problems I&apos;ll wait for 3.5 to come out.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374825</commentid>
    <comment_count>5</comment_count>
    <who name="Henk">h.weebers</who>
    <bug_when>2005-09-22 11:28:10 +0000</bug_when>
    <thetext>I&apos;ll wait for 3.5 too. I have no time to compile a source.

Henk Weebers</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>