Skip to content

Commit

Permalink
Fixup - wrong button
Browse files Browse the repository at this point in the history
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
  • Loading branch information
szszszsz committed May 16, 2016
1 parent d8a393d commit c9bdc0a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,17 +1136,18 @@ void MainWindow::initActionsForStick20() {
connect(Stick20ActionExportFirmwareToFile, SIGNAL(triggered()), this,
SLOT(startStick20ExportFirmwareToFile()));

QSignalMapper *signalMapper_startStick20DestroyCryptedVolume = new QSignalMapper(this); //FIXME memory leak
QSignalMapper *signalMapper_startStick20DestroyCryptedVolume =
new QSignalMapper(this); // FIXME memory leak

Stick20ActionDestroyCryptedVolume = new QAction(tr("&Destroy encrypted data"), this);
signalMapper_startStick20DestroyCryptedVolume->setMapping(Stick20ActionDestroyCryptedVolume, 0);
connect(Stick20ActionDestroyCryptedVolume, SIGNAL(triggered()), signalMapper_startStick20DestroyCryptedVolume,
SLOT(map()));
connect(Stick20ActionDestroyCryptedVolume, SIGNAL(triggered()),
signalMapper_startStick20DestroyCryptedVolume, SLOT(map()));

Stick20ActionInitCryptedVolume = new QAction(tr("&Initialize device"), this);
signalMapper_startStick20DestroyCryptedVolume->setMapping(Stick20ActionDestroyCryptedVolume, 1);
connect(Stick20ActionInitCryptedVolume, SIGNAL(triggered()), signalMapper_startStick20DestroyCryptedVolume,
SLOT(map()));
signalMapper_startStick20DestroyCryptedVolume->setMapping(Stick20ActionInitCryptedVolume, 1);
connect(Stick20ActionInitCryptedVolume, SIGNAL(triggered()),
signalMapper_startStick20DestroyCryptedVolume, SLOT(map()));

connect(signalMapper_startStick20DestroyCryptedVolume, SIGNAL(mapped(int)), this,
SLOT(startStick20DestroyCryptedVolume(int)));
Expand Down

0 comments on commit c9bdc0a

Please sign in to comment.