Commit f639d3e5 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by Jan Grulich

mobile filechooser: Don't accept empty titles

Somehow the QtQuick.Dialogs file dialog does this
parent 13fbfe7e
......@@ -70,8 +70,11 @@ QString MobileFileDialog::title() const
void MobileFileDialog::setTitle(const QString &title)
{
m_customTitleSet = true;
m_callback->setTitle(title);
// Don't accept an empty titles
if (!title.isEmpty()) {
m_customTitleSet = true;
m_callback->setTitle(title);
}
}
bool MobileFileDialog::selectMultiple() const
......
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