mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: prepare for KIO classes changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cc34d047b8
commit
f1a78059d5
1 changed files with 2 additions and 2 deletions
|
@ -48,14 +48,14 @@ namespace FileUtils
|
||||||
bool contentsAreIdentical(const KUrl& url1, const KUrl& url2, QWidget* authWindow)
|
bool contentsAreIdentical(const KUrl& url1, const KUrl& url2, QWidget* authWindow)
|
||||||
{
|
{
|
||||||
// FIXME: Support remote urls
|
// FIXME: Support remote urls
|
||||||
QFile file1(KIO::NetAccess::mostLocalUrl(url1, authWindow).toLocalFile());
|
QFile file1(url1.toLocalFile());
|
||||||
if (!file1.open(QIODevice::ReadOnly)) {
|
if (!file1.open(QIODevice::ReadOnly)) {
|
||||||
// Can't read url1, assume it's different from url2
|
// Can't read url1, assume it's different from url2
|
||||||
kWarning() << "Can't read" << url1;
|
kWarning() << "Can't read" << url1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QFile file2(KIO::NetAccess::mostLocalUrl(url2, authWindow).toLocalFile());
|
QFile file2(url2.toLocalFile());
|
||||||
if (!file2.open(QIODevice::ReadOnly)) {
|
if (!file2.open(QIODevice::ReadOnly)) {
|
||||||
// Can't read url2, assume it's different from url1
|
// Can't read url2, assume it's different from url1
|
||||||
kWarning() << "Can't read" << url2;
|
kWarning() << "Can't read" << url2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue