diff options
author | Florian Jung <flo@windfisch.org> | 2011-07-28 17:20:06 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-07-28 17:20:06 +0000 |
commit | d8b982306e85b2a29f793d50cab2a424c1715c0d (patch) | |
tree | 389dbe1037fdb0f2639e5610f3d6c394ed8c9233 /muse2/muse/app.cpp | |
parent | 7193ff9d74fe76737d28ba77bf3dcadac19d2895 (diff) | |
parent | 346fbb6c864890959ac2e3a7f4549d6bb202373e (diff) |
merged with trunk
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index fb07955f..3abb116f 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -3114,6 +3114,27 @@ void MusE::bounceToFile(AudioOutput* ao) song->setPlay(true); } + +//--------------------------------------------------------- +// checkRegionNotNull +// return true if (rPos - lPos) <= 0 +//--------------------------------------------------------- + +bool MusE::checkRegionNotNull() + { + int start = song->lPos().frame(); + int end = song->rPos().frame(); + if (end - start <= 0) { + QMessageBox::critical(this, + tr("MusE: Bounce"), + tr("set left/right marker for bounce range") + ); + return true; + } + return false; + } + + #ifdef HAVE_LASH //--------------------------------------------------------- // lash_idle_cb |