summaryrefslogtreecommitdiff
blob: 3db2b32ad4bc5f5d43e296257655797275f12260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 61b243ccc907f34115a00572e2d8f2bfa2682e6c Mon Sep 17 00:00:00 2001
From: Vladi Belperchinov-Shabanski <cade@datamax.bg>
Date: Thu, 26 Feb 2015 16:08:51 +0200
Subject: [PATCH] toascii-tolatin1-fix

---
 src/qvv_main_win.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qvv_main_win.cpp b/src/qvv_main_win.cpp
index 3516f87..0ade17c 100644
--- a/src/qvv_main_win.cpp
+++ b/src/qvv_main_win.cpp
@@ -783,7 +783,7 @@ int QvvMainWindow::deleteItems( int current_only )
 
     //qDebug() << "DELETE YES: " << file_name << " RESBUTTON: " << QVariant( confirm->activated_button ).toString();
 
-    QString path_hash = QVariant( QCryptographicHash::hash( cdir.absolutePath().toAscii(), QCryptographicHash::Sha1 ).toHex() ).toString();
+    QString path_hash = QVariant( QCryptographicHash::hash( cdir.absolutePath().toLatin1(), QCryptographicHash::Sha1 ).toHex() ).toString();
     QString trash_file_name = trash_can + "/" + path_hash + "." + item->text( 1 );
 
     int moved_ok = 0;