mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: adjust to KFileItem changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f1a78059d5
commit
0bc3eed75c
3 changed files with 4 additions and 4 deletions
|
@ -92,13 +92,13 @@ RenameResult rename(const KUrl& src, const KUrl& dst_, QWidget* authWindow)
|
|||
// Get src size
|
||||
KIO::UDSEntry udsEntry;
|
||||
KIO::NetAccess::stat(src, udsEntry, authWindow);
|
||||
KFileItem item(udsEntry, src, true /* delayedMimeTypes */);
|
||||
KFileItem item(udsEntry, src);
|
||||
KIO::filesize_t srcSize = item.size();
|
||||
|
||||
// Find unique name
|
||||
while (KIO::NetAccess::stat(dst, udsEntry, authWindow)) {
|
||||
// File exists. If it's not the same, try to create a new name
|
||||
item = KFileItem(udsEntry, dst, true /* delayedMimeTypes */);
|
||||
item = KFileItem(udsEntry, dst);
|
||||
KIO::filesize_t dstSize = item.size();
|
||||
|
||||
if (srcSize == dstSize && contentsAreIdentical(src, dst, authWindow)) {
|
||||
|
|
|
@ -112,7 +112,7 @@ struct ImporterPrivate
|
|||
KUrl dst = src.upUrl();
|
||||
QString fileName;
|
||||
if (mFileNameFormater.get()) {
|
||||
KFileItem item(KFileItem::Unknown, KFileItem::Unknown, src, true /* delayedMimeTypes */);
|
||||
KFileItem item(KFileItem::Unknown, KFileItem::Unknown, src);
|
||||
// Get the document time, but do not cache the result because the
|
||||
// 'src' url is temporary: if we import "foo/image.jpg" and
|
||||
// "bar/image.jpg", both images will be temporarily saved in the
|
||||
|
|
|
@ -206,7 +206,7 @@ struct ThumbnailPagePrivate : public Ui_ThumbnailPage
|
|||
if (!ok) {
|
||||
return KUrl();
|
||||
}
|
||||
KFileItem item(entry, url, true /* delayedMimeTypes */);
|
||||
KFileItem item(entry, url);
|
||||
return item.isDir() ? url : KUrl();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue