diff options
| author | 2009-05-17 16:26:40 +0000 | |
|---|---|---|
| committer | 2009-05-17 16:26:40 +0000 | |
| commit | e9ca7c9608dac6cb49adfe6af71bd826a42a985c (patch) | |
| tree | 1153fa1a3269132eaef1c891a0e99035c4266ca3 /src/modules/popupeditor/popupeditor.cpp | |
| parent | allow the user to resize middle column in filetransferwindow (diff) | |
| download | KVIrc-e9ca7c9608dac6cb49adfe6af71bd826a42a985c.tar.gz KVIrc-e9ca7c9608dac6cb49adfe6af71bd826a42a985c.tar.bz2 KVIrc-e9ca7c9608dac6cb49adfe6af71bd826a42a985c.zip | |
fixed a crash in popupeditor
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3217 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/popupeditor/popupeditor.cpp')
| -rw-r--r-- | src/modules/popupeditor/popupeditor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/popupeditor/popupeditor.cpp b/src/modules/popupeditor/popupeditor.cpp index b1f30d111..3213b3cd5 100644 --- a/src/modules/popupeditor/popupeditor.cpp +++ b/src/modules/popupeditor/popupeditor.cpp @@ -1345,8 +1345,10 @@ QPixmap * KviPopupEditorWindow::myIconPtr() void KviPopupEditorWindow::resizeEvent(QResizeEvent *) { int hght = m_pBase->sizeHint().height(); - m_pEditor->setGeometry(0,0,width(),height()- hght); - m_pBase->setGeometry(0,height() - hght,width(),hght); + if(m_pEditor) + m_pEditor->setGeometry(0,0,width(),height()- hght); + if(m_pBase) + m_pBase->setGeometry(0,height() - hght,width(),hght); } void KviPopupEditorWindow::fillCaptionBuffers() |
