aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/url/libkviurl.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2008-01-11 16:38:56 +0000
committerGravatar Szymon Tomasz Stefanek2008-01-11 16:38:56 +0000
commit9c57fb511378fabd7ba1ead3400ad19e95f43e66 (patch)
treefea33181bcdfa29975cfdf3181f0bfaeb847f015 /src/modules/url/libkviurl.cpp
parentadded czech .po (diff)
downloadKVIrc-9c57fb511378fabd7ba1ead3400ad19e95f43e66.tar.gz
KVIrc-9c57fb511378fabd7ba1ead3400ad19e95f43e66.tar.bz2
KVIrc-9c57fb511378fabd7ba1ead3400ad19e95f43e66.zip
More work on the context module and some QT4 port in trunk: no longer use Q3PtrList but also leave the client code untouched
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1071 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/url/libkviurl.cpp')
-rw-r--r--src/modules/url/libkviurl.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/url/libkviurl.cpp b/src/modules/url/libkviurl.cpp
index f979da4fb..a7c1d874e 100644
--- a/src/modules/url/libkviurl.cpp
+++ b/src/modules/url/libkviurl.cpp
@@ -17,7 +17,6 @@
// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
-
#include "kvi_styled_controls.h"
#include "kvi_module.h"
#include "libkviurl.h"
@@ -213,11 +212,11 @@ void UrlDialog::remove()
QMessageBox::warning(0,__tr2qs("Warning - KVIrc"),__tr2qs("Select an URL."),QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
return;
}
+
for(KviUrl *tmp=g_pList->first();tmp;tmp=g_pList->next())
{
if (tmp->url == m_pUrlList->currentItem()->text(0)) {
- g_pList->find(tmp);
- g_pList->remove();
+ g_pList->removeRef(tmp);
m_pUrlList->takeItem(m_pUrlList->currentItem());
return;
}
@@ -468,7 +467,11 @@ void BanFrame::removeBan()
KviStr item(m_pBanList->text(i).utf8().data());
for(KviStr *tmp=g_pBanList->first();tmp;tmp=g_pBanList->next())
{
- if (*tmp == item) g_pBanList->remove();
+ if (*tmp == item)
+ {
+ g_pBanList->removeCurrent();
+ return;
+ }
}
m_pBanList->removeItem(i);