summaryrefslogtreecommitdiffstats
path: root/src/qphotorec.cpp
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2016-02-22 10:14:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-02-22 10:14:22 +0100
commit3fbf22ea46345c2faec5cd9f193fd656b28a93be (patch)
tree903b2d6871692fe4822afb4e4c2293ce9d129b07 /src/qphotorec.cpp
parentc6ad9068b3a0f8092927678ada9f2012900ad2a2 (diff)
Port qphotorec to QT5
Diffstat (limited to 'src/qphotorec.cpp')
-rw-r--r--src/qphotorec.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp
index c4ffd89..57b1293 100644
--- a/src/qphotorec.cpp
+++ b/src/qphotorec.cpp
@@ -638,9 +638,10 @@ void QPhotorec::qphotorec_search_updateUI()
const partition_t *partition=params->partition;
const unsigned int sector_size=params->disk->sector_size;
QString tmp;
- folder_txt->setText("Destination: <a href=\"file://" + Qt::escape(directoryLabel->text()) + "/" +
+ QString txt = QString(directoryLabel->text()).toHtmlEscaped();
+ folder_txt->setText("Destination: <a href=\"file://" + txt + "/" +
DEFAULT_RECUP_DIR + "." + QString::number(params->dir_num) + "\">" +
- Qt::escape(directoryLabel->text()) + "</a>");
+ txt + "</a>");
if(params->status==STATUS_QUIT)
{
tmp.sprintf("Recovery completed");