Commit ea8ed5c4 authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

kdeconnect-handler: auto select the sendFile radio button if url is actually a local file

parent e683dd21
Pipeline #68324 passed with stage
in 4 minutes and 39 seconds
......@@ -111,6 +111,13 @@ int main(int argc, char** argv)
QObject::connect(urlRequester, &KUrlRequester::textChanged, [urlRequester, &uidialog](const QString& newUrl)
bool isLocalFileUrl = QFileInfo(newUrl).exists() && QFileInfo(newUrl).isFile(); // we don't support sending directories yet!
if (!urlToShare.isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment