We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760f1aa commit 4b41b09Copy full SHA for 4b41b09
1 file changed
mainwindow.cpp
@@ -233,6 +233,11 @@ void MainWindow::startRecording() {
233
// determine the experiment number block
234
// scan the path for %n/%1 and %b/%2
235
recFilename = ui->locationEdit->text();
236
+ if (recFilename.isEmpty()) {
237
+ QMessageBox::critical(this, "Filename empty", "Can not record without a file name");
238
+ return;
239
+ }
240
+
241
int pos_n = recFilename.indexOf("%n");
242
if(pos_n != -1)
243
recFilename.replace(pos_n, 2, QString::number(ui->experimentNumberSpin->value()));
0 commit comments