From kde-commits Wed Feb 13 11:21:41 2008 From: Andras Mantia Date: Wed, 13 Feb 2008 11:21:41 +0000 To: kde-commits Subject: branches/KDE/3.5/kdewebdev/quanta Message-Id: <1202901701.953101.18976.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120290170915455 SVN commit 774500 by amantia: Fix ugly crash when using XDebug. M +2 -0 components/debugger/dbgp/dbgpnetwork.cpp M +1 -1 components/debugger/debuggermanager.cpp M +1 -0 src/quanta.h --- branches/KDE/3.5/kdewebdev/quanta/components/debugger/dbgp/dbgpnetwork.cpp #774499:774500 @@ -91,9 +91,11 @@ if(m_socket) { m_socket->flush(); + disconnect(m_socket, SIGNAL(closed()), this, SLOT(slotConnectionClosed())); if (m_socket) m_socket->close(); delete m_socket; + m_socket = 0L; } // Close the server --- branches/KDE/3.5/kdewebdev/quanta/components/debugger/debuggermanager.cpp #774499:774500 @@ -597,7 +597,7 @@ m_currentLine = line; // No new current position - if(filename.isEmpty()) + if(filename.isEmpty() || quantaApp->previewVisible()) return true; // Find new position in editor --- branches/KDE/3.5/kdewebdev/quanta/src/quanta.h #774499:774500 @@ -171,6 +171,7 @@ void reparse(bool force); bool structTreeVisible() const; + bool previewVisible() const {return m_previewVisible;} //return the old Cursor position void oldCursorPos(uint &line, uint &col) {line = oldCursorLine; col = oldCursorCol;}