Commit d4b7962d authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Fix a bug in SharedKvtmlFiles.

When kanagram or khangman hold a document open, then their
settings dialog scans for files it's unable to get the lock on the one
in use, so that file shows with no Title or Description.
Since we are just reading the files ignore locks and read the data
when iterating the list of shared kvtml files.

Also removed an unused duplicate variable.
parent 5b20cc74
Pipeline #214111 passed with stage
in 2 minutes and 29 seconds
......@@ -54,8 +54,6 @@ void SharedKvtmlFilesPrivate::rescan()
this->m_filesByLang.clear();
this->m_fileList.clear();
QStringList locales;
// Get all kvtml paths
QStringList nameFilter;
nameFilter.append(QStringLiteral("*.kvtml"));
......@@ -77,7 +75,7 @@ void SharedKvtmlFilesPrivate::rescan()
for ( int i = 0; i < this->m_fileList.size(); ++i ) {
// open the file
doc->open( QUrl::fromLocalFile( this->m_fileList[i] ) );
doc->open( QUrl::fromLocalFile( this->m_fileList[i] ), KEduVocDocument::FileIgnoreLock );
// add it's title to the title list
this->m_titleList.append( doc->title() );
......
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