Make playback of audio files platform independent

presentation
Ulrich Huber 7 years ago
parent 6b2990ceb5
commit 76f3c281a3
  1. 7
      src/gui/PageViewFindObjectHelper.h

@ -162,9 +162,12 @@ protected:
if (!fn.empty())
{
if (fn.rfind('/', 0) != 0)
if (fn.rfind(G_DIR_SEPARATOR, 0) != 0)
{
fn = Path::fromUri(view->settings->getAudioFolder()).str() + "/" + fn;
Path path = Path::fromUri(view->settings->getAudioFolder());
path /= fn;
fn = path.str();
}
view->getXournal()->getControl()->getAudioController()->startPlayback(fn, (unsigned int) ts);
}

Loading…
Cancel
Save