diff options
| author | 2009-02-17 17:21:55 +0000 | |
|---|---|---|
| committer | 2009-02-17 17:21:55 +0000 | |
| commit | 47546513b81eb0b18259ddb85ab2124eb9a6bf7c (patch) | |
| tree | c9cdfbdfbfeecd171a6d4e287b8abc0bda1884c2 /src/modules/iograph/libkviiograph.cpp | |
| parent | More work on objects module (w.i.p.) (diff) | |
| download | KVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.tar.gz KVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.tar.bz2 KVIrc-47546513b81eb0b18259ddb85ab2124eb9a6bf7c.zip | |
ensure that all the modules that creates a window using g_pFrame->addWindow closes the window using g_pFrame->closeWindow (that is a public member by now); This removes some remaining problems regarding mdichilds
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3080 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/iograph/libkviiograph.cpp')
| -rw-r--r-- | src/modules/iograph/libkviiograph.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/iograph/libkviiograph.cpp b/src/modules/iograph/libkviiograph.cpp index c273435f6..3ae54a2ae 100644 --- a/src/modules/iograph/libkviiograph.cpp +++ b/src/modules/iograph/libkviiograph.cpp @@ -155,7 +155,6 @@ void KviIOGraphWidget::timerEvent(QTimerEvent *) unsigned int sDiff = sB - m_uLastSentBytes; unsigned int rDiff = rB - m_uLastRecvBytes; - printf("%d\n",sDiff); unsigned int iMax = qMax(sDiff, rDiff); while(iMax > m_maxRate) m_maxRate*=2; @@ -326,11 +325,9 @@ static bool iograph_module_init(KviModule *m) static bool iograph_module_cleanup(KviModule *) { - if(g_pIOGraphWindow) - { - delete g_pIOGraphWindow; - g_pIOGraphWindow = 0; - } + if(g_pIOGraphWindow && g_pFrame) + g_pFrame->closeWindow(g_pIOGraphWindow); + g_pIOGraphWindow = 0; return true; } |
