diff options
| author | 2010-10-16 15:21:19 +0000 | |
|---|---|---|
| committer | 2010-10-16 15:21:19 +0000 | |
| commit | c64ecad0ee25cb739d236da0e29a988cd88bae94 (patch) | |
| tree | 59ecc67574974a93883f7a1d58852627e2fd1a32 /src/modules/popupeditor | |
| parent | $str.printf: applied patch from #996 and fixed ?f and ?e format strings when ... (diff) | |
| download | KVIrc-c64ecad0ee25cb739d236da0e29a988cd88bae94.tar.gz KVIrc-c64ecad0ee25cb739d236da0e29a988cd88bae94.tar.bz2 KVIrc-c64ecad0ee25cb739d236da0e29a988cd88bae94.zip | |
applied further patches for #996
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5075 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/popupeditor')
| -rw-r--r-- | src/modules/popupeditor/popupeditor.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/popupeditor/popupeditor.cpp b/src/modules/popupeditor/popupeditor.cpp index 855e23571..f2487c89a 100644 --- a/src/modules/popupeditor/popupeditor.cpp +++ b/src/modules/popupeditor/popupeditor.cpp @@ -1056,7 +1056,7 @@ KviPopupEditor::KviPopupEditor(QWidget * par) m_pContextPopup = new KviTalPopupMenu(this); m_pEmptyContextPopup = new KviTalPopupMenu(this); - + spl->setStretchFactor (0,20); spl->setStretchFactor (1,80); @@ -1077,14 +1077,12 @@ void KviPopupEditor::oneTimeSetup() KviPointerHashTableIterator<QString,KviKvsPopupMenu> it(*a); - KviMenuTreeWidgetItem * item; - while(it.current()) { KviKvsPopupMenu * popup = it.current(); KviKvsPopupMenu * copy = new KviKvsPopupMenu(popup->popupName()); copy->copyFrom(popup); - item = new KviMenuTreeWidgetItem(m_pTreeWidget,copy); + new KviMenuTreeWidgetItem(m_pTreeWidget,copy); ++it; } @@ -1123,7 +1121,7 @@ void KviPopupEditor::popupRefresh(const QString &szName) KviKvsPopupMenu * pCopy = new KviKvsPopupMenu(szName); pCopy->copyFrom(pPopup); ch->replacePopup(pCopy); - + //refresh current item if(ch==m_pLastEditedItem) m_pEditor->edit(m_pLastEditedItem); |
