diff options
| author | 2012-11-13 12:09:49 +0000 | |
|---|---|---|
| committer | 2012-11-13 12:09:49 +0000 | |
| commit | c495337ae80f6ae98bb314da9d9c95ea1d56c000 (patch) | |
| tree | b11e95249d4758e7dd497d154f2446c5077e4996 | |
| parent | fix #1339, #1335 (diff) | |
| download | KVIrc-c495337ae80f6ae98bb314da9d9c95ea1d56c000.tar.gz KVIrc-c495337ae80f6ae98bb314da9d9c95ea1d56c000.tar.bz2 KVIrc-c495337ae80f6ae98bb314da9d9c95ea1d56c000.zip | |
fix #1334
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6283 17fca916-40b9-46aa-a4ea-0a15b648b75c
| -rw-r--r-- | src/modules/filetransferwindow/FileTransferWindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/filetransferwindow/FileTransferWindow.cpp b/src/modules/filetransferwindow/FileTransferWindow.cpp index 6aee2d99b..996990c2f 100644 --- a/src/modules/filetransferwindow/FileTransferWindow.cpp +++ b/src/modules/filetransferwindow/FileTransferWindow.cpp @@ -441,10 +441,12 @@ void FileTransferWindow::rightButtonPressed(FileTransferItem *it,const QPoint &p tmp += "</nobr>"; #endif //COMPILE_KDE_SUPPORT - QLabel * l = new QLabel(tmp,m_pLocalFilePopup); + QWidgetAction * pWaction = new QWidgetAction(m_pLocalFilePopup); + QLabel * l = new QLabel(tmp, m_pLocalFilePopup); QPalette p; l->setStyleSheet("background-color: " + p.color(QPalette::Normal, QPalette::Mid).name()); - m_pLocalFilePopup->addAction(new QWidgetAction(l)); + pWaction->setDefaultWidget(l); + m_pLocalFilePopup->addAction(pWaction); #ifdef COMPILE_KDE_SUPPORT QString mimetype = KMimeType::findByPath(szFile)->name(); |
