<table><tr><td style="">ouwerkerk updated this revision to Diff 13886.<br />ouwerkerk added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5544" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Fix: crash on opening a custom game variant.</p>
<p>KUrl accepts raw file paths, but QUrl doesn't. <br />
Use QUrl::fromLocalFile() to fix the crash.<br />
Also make sure to not do hacky things with raw file paths when Qt supplies perfectly good APIs for that purpose already.<br />
(Note: the entire function should probably be updated to use Qt APIs instead of manual fiddling with file & directory paths.)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R417 KSudoku</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D5544?vs=13710&id=13886" rel="noreferrer">https://phabricator.kde.org/D5544?vs=13710&id=13886</a></div></div><br /><div><strong>BRANCH</strong><div><div>port-to-qurl</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5544" rel="noreferrer">https://phabricator.kde.org/D5544</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/gui/gamevariants.cpp<br />
src/gui/gamevariants.h<br />
src/gui/ksudoku.cpp<br />
src/gui/ksudoku.h<br />
src/gui/ksudokugame.cpp<br />
src/gui/ksudokugame.h<br />
src/gui/serializer.cpp<br />
src/gui/serializer.h<br />
src/main.cpp</div></div></div><br /><div><strong>To: </strong>ouwerkerk, KDE Games, ltoscano<br /><strong>Cc: </strong>ltoscano, KDE Games<br /></div>