Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/paste.cpp
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 95 | if (res == KIO::Result_Rename) { | |||
---|---|---|---|---|---|
96 | return dlg.newDestUrl(); | 96 | return dlg.newDestUrl(); | ||
97 | } else if (res == KIO::Result_Cancel) { | 97 | } else if (res == KIO::Result_Cancel) { | ||
98 | return QUrl(); | 98 | return QUrl(); | ||
99 | } else if (res == KIO::Result_Overwrite) { | 99 | } else if (res == KIO::Result_Overwrite) { | ||
100 | return destUrl; | 100 | return destUrl; | ||
101 | } | 101 | } | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | return QUrl(); | 104 | return destUrl; | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | static QUrl getNewFileName(const QUrl &u, const QString &text, const QString &suggestedFileName, QWidget *widget) | 107 | static QUrl getNewFileName(const QUrl &u, const QString &text, const QString &suggestedFileName, QWidget *widget) | ||
108 | { | 108 | { | ||
109 | bool ok; | 109 | bool ok; | ||
110 | QString dialogText(text); | 110 | QString dialogText(text); | ||
111 | if (dialogText.isEmpty()) { | 111 | if (dialogText.isEmpty()) { | ||
112 | dialogText = i18n("Filename for clipboard content:"); | 112 | dialogText = i18n("Filename for clipboard content:"); | ||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |