aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/logview/LogViewWindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2011-07-11 21:09:33 +0000
committerGravatar Fabio Bas2011-07-11 21:09:33 +0000
commit11cc89921bf8d1c71b67e2dcb1316c90444b02b0 (patch)
treef4802126b265ccc1da60fdcefb442529f8ce61c3 /src/modules/logview/LogViewWindow.cpp
parentimplemented #1170 (diff)
downloadKVIrc-11cc89921bf8d1c71b67e2dcb1316c90444b02b0.tar.gz
KVIrc-11cc89921bf8d1c71b67e2dcb1316c90444b02b0.tar.bz2
KVIrc-11cc89921bf8d1c71b67e2dcb1316c90444b02b0.zip
fix for #1167
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5890 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/logview/LogViewWindow.cpp')
-rw-r--r--src/modules/logview/LogViewWindow.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/modules/logview/LogViewWindow.cpp b/src/modules/logview/LogViewWindow.cpp
index 1b8351999..94c1cb678 100644
--- a/src/modules/logview/LogViewWindow.cpp
+++ b/src/modules/logview/LogViewWindow.cpp
@@ -435,7 +435,7 @@ void LogViewWindow::rightButtonClicked(QTreeWidgetItem * pItem, const QPoint &)
if(((LogListViewItem *)pItem)->childCount())
{
//pPopup->insertItem(*(g_pIconManager->getSmallIcon(KviIconManager::UserList)),__tr2qs_ctx("Export all log files to","log"),m_pExportLogPopup);
- pPopup->insertItem(*(g_pIconManager->getSmallIcon(KviIconManager::Quit)),__tr2qs_ctx("Remove all log files","log"),this,SLOT(deleteCurrent()));
+ pPopup->insertItem(*(g_pIconManager->getSmallIcon(KviIconManager::Quit)),__tr2qs_ctx("Remove all log files within this folder","log"),this,SLOT(deleteCurrent()));
} else {
pPopup->insertItem(*(g_pIconManager->getSmallIcon(KviIconManager::UserList)),__tr2qs_ctx("Export log file to","log"),m_pExportLogPopup);
pPopup->insertItem(*(g_pIconManager->getSmallIcon(KviIconManager::Quit)),__tr2qs_ctx("Remove log file","log"),this,SLOT(deleteCurrent()));
@@ -461,9 +461,7 @@ void LogViewWindow::deleteCurrent()
__tr2qs("Yes"),__tr2qs("No"),0,1) != 0)
return;
- QString szFname;
- g_pApp->getLocalKvircDirectory(szFname,KviApplication::Log,pItem->fileName());
- KviFileUtils::removeFile(szFname);
+ KviFileUtils::removeFile(pItem->fileName());
delete pItem;
m_pIrcView->clearBuffer();
if(!pItem->parent()->childCount())
@@ -502,11 +500,7 @@ void LogViewWindow::deleteCurrent()
{
LogListViewItem * pCurItem = itemsList.at(u);
if(!pCurItem->fileName().isNull())
- {
- QString szFname;
- g_pApp->getLocalKvircDirectory(szFname,KviApplication::Log,pCurItem->fileName());
- KviFileUtils::removeFile(szFname);
- }
+ KviFileUtils::removeFile(pCurItem->fileName());
}
delete pItem;
}