Commit 9bc7d3a3 authored by Jeremy Whiting's avatar Jeremy Whiting

Fix some broken QUrl default ctor usages.

parent 2db5336f
......@@ -502,7 +502,7 @@ void KMouthApp::slotPhrasebookConfirmed()
QString standardBook = QStandardPaths::locate(QStandardPaths::DataLocation, QLatin1String("standard.phrasebook"));
if (!standardBook.isEmpty()) {
PhraseBook book;
book.open(QUrl(standardBook));
book.open(QUrl::fromLocalFile(standardBook));
QString name = QLatin1String("phrasebooks");
QMenu *popup = (QMenu *)factory()->container(name, this);
KToolBar *toolbar = toolBar(QLatin1String("phrasebookBar"));
......
......@@ -131,7 +131,7 @@ void InitialPhraseBookWidget::addChildrenToBook(PhraseBook &book, QStandardItem
QStandardItem *child = item->child(i);
if (child->checkState() != Qt::Unchecked) {
PhraseBook localBook;
if (localBook.open(QUrl(child->data().toString()))) {
if (localBook.open(QUrl::fromLocalFile(child->data().toString()))) {
book += localBook;
}
}
......
......@@ -416,7 +416,7 @@ StandardBookList PhraseBook::standardPhraseBooks()
for (it = bookPaths.begin(); it != bookPaths.end(); ++it) {
PhraseBook pbook;
// Open the phrasebook.
if (pbook.open(QUrl(*it))) {
if (pbook.open(QUrl::fromLocalFile(*it))) {
StandardBook book;
book.name = (*pbook.begin()).getPhrase().getPhrase();
......
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