Skip to content
Permalink
Browse files

Prevent adding to VoiceRecorder buffer after recording was stopped.

  • Loading branch information...
hacst committed Feb 12, 2014
1 parent 2ca559b commit ea165cdefc1cb164a6fdf6b6fd7eefb8172baf5c
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/mumble/MainWindow.cpp
  2. +3 −0 src/mumble/VoiceRecorder.cpp
@@ -396,7 +396,7 @@ void MainWindow::closeEvent(QCloseEvent *e) {
ServerHandlerPtr sh = g.sh;
if (sh && sh->isRunning() && g.s.bAskOnQuit && !bSuppressAskOnQuit) {
QMessageBox mb(QMessageBox::Warning, QLatin1String("Mumble"), tr("Mumble is currently connected to a server. Do you want to Close or Minimize it?"), QMessageBox::NoButton, this);
QPushButton *qpbClose = mb.addButton(tr("Close"), QMessageBox::YesRole);
mb.addButton(tr("Close"), QMessageBox::YesRole);
QPushButton *qpbMinimize = mb.addButton(tr("Minimize"), QMessageBox::NoRole);
QPushButton *qpbCancel = mb.addButton(tr("Cancel"), QMessageBox::RejectRole);
mb.setDefaultButton(qpbCancel);
@@ -422,6 +422,9 @@ void VoiceRecorder::addBuffer(const ClientUser *clientUser,

Q_ASSERT(!m_config.mixDownMode || clientUser == NULL);

if (!m_recording)
return;

// Create a new RecordInfo object if this is a new user.
const int index = indexForUser(clientUser);

0 comments on commit ea165cd

Please sign in to comment.
You can’t perform that action at this time.