Changeset View
Changeset View
Standalone View
Standalone View
klipper/editactiondialog.cpp
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Line(s) | 342 | { | |||
---|---|---|---|---|---|
346 | } | 346 | } | ||
347 | 347 | | |||
348 | m_action->setRegExp( m_ui->leRegExp->text() ); | 348 | m_action->setRegExp( m_ui->leRegExp->text() ); | ||
349 | m_action->setDescription( m_ui->leDescription->text() ); | 349 | m_action->setDescription( m_ui->leDescription->text() ); | ||
350 | m_action->setAutomatic( m_ui->automatic->isChecked() ); | 350 | m_action->setAutomatic( m_ui->automatic->isChecked() ); | ||
351 | 351 | | |||
352 | m_action->clearCommands(); | 352 | m_action->clearCommands(); | ||
353 | 353 | | |||
354 | foreach ( const ClipCommand& cmd, m_model->commands() ){ | 354 | const auto commands = m_model->commands(); | ||
355 | for ( const ClipCommand& cmd : commands){ | ||||
355 | m_action->addCommand( cmd ); | 356 | m_action->addCommand( cmd ); | ||
356 | } | 357 | } | ||
357 | } | 358 | } | ||
358 | 359 | | |||
359 | void EditActionDialog::slotAccepted() | 360 | void EditActionDialog::slotAccepted() | ||
360 | { | 361 | { | ||
361 | saveAction(); | 362 | saveAction(); | ||
362 | 363 | | |||
Show All 28 Lines |