Commit afe0deb9 authored by Bitterblue OfMonsea's avatar Bitterblue OfMonsea Committed by Nicolas Fella
Browse files

bluedevil-sendfile: Fix small size of file selector

When running "bluedevil-sendfile -u <device>" (or with -k) the file
selector that pops up is much too small. Use the dialog size suggested
by KFileWidget instead.
parent 7ac713d2
...@@ -52,6 +52,10 @@ void SelectFilesPage::initializePage() ...@@ -52,6 +52,10 @@ void SelectFilesPage::initializePage()
{ {
SendFileWizard *w = static_cast<SendFileWizard*>(wizard()); SendFileWizard *w = static_cast<SendFileWizard*>(wizard());
const QSize sizeHint = m_files->dialogSizeHint();
if (sizeHint.isValid())
w->resize(sizeHint);
w->setWindowTitle(i18nc("Send files to a Bluetooth device", "Send to %1", w->device()->name())); w->setWindowTitle(i18nc("Send files to a Bluetooth device", "Send to %1", w->device()->name()));
} }
......
Markdown is supported
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