Skip to content

Commit 781fb63

Browse files
committed
Don't show error dialog of empty file when Jack enabled
1 parent 13dd981 commit 781fb63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/application/service/jack_service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jack_nframes_t JackService::currentFrame() const
166166

167167
void JackService::startRecording(const QString & filePath)
168168
{
169-
if (!m_client) {
169+
if (!m_client || filePath.isEmpty()) {
170170
return;
171171
}
172172

@@ -225,7 +225,7 @@ bool JackService::isRecording() const
225225

226226
void JackService::startPlayback(const QString & filePath)
227227
{
228-
if (!m_client) {
228+
if (!m_client || filePath.isEmpty()) {
229229
return;
230230
}
231231

0 commit comments

Comments
 (0)