Deduplicate seek forward and backward action. (#1844)

This commit is contained in:
karliss 2019-10-17 03:02:48 +03:00 committed by GitHub
parent f64972fda2
commit 771217d70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 31 deletions

View File

@ -1283,16 +1283,6 @@ void MainWindow::on_actionForward_triggered()
core->seekNext();
}
void MainWindow::on_actionUndoSeek_triggered()
{
core->seekPrev();
}
void MainWindow::on_actionRedoSeek_triggered()
{
core->seekNext();
}
void MainWindow::on_actionDisasAdd_comment_triggered()
{
CommentsDialog c(this);

View File

@ -168,8 +168,6 @@ private slots:
void on_actionBackward_triggered();
void on_actionForward_triggered();
void on_actionUndoSeek_triggered();
void on_actionRedoSeek_triggered();
void on_actionOpen_triggered();

View File

@ -113,8 +113,8 @@
<string>Edit</string>
</property>
<addaction name="actionSearch"/>
<addaction name="actionUndoSeek"/>
<addaction name="actionRedoSeek"/>
<addaction name="actionBackward"/>
<addaction name="actionForward"/>
<addaction name="separator"/>
<addaction name="actionPreferences"/>
</widget>
@ -293,16 +293,6 @@
<string>Ctrl+S</string>
</property>
</action>
<action name="actionUndoSeek">
<property name="text">
<string>Undo Seek</string>
</property>
</action>
<action name="actionRedoSeek">
<property name="text">
<string>Redo Seek</string>
</property>
</action>
<action name="actionCut">
<property name="text">
<string>Cut</string>
@ -358,7 +348,7 @@
<normaloff>:/img/icons/arrow_left.svg</normaloff>:/img/icons/arrow_left.svg</iconset>
</property>
<property name="text">
<string>Back</string>
<string>Undo Seek</string>
</property>
<property name="toolTip">
<string>Go back</string>
@ -370,7 +360,7 @@
<normaloff>:/img/icons/arrow_right.svg</normaloff>:/img/icons/arrow_right.svg</iconset>
</property>
<property name="text">
<string>Forward</string>
<string>Redo Seek</string>
</property>
</action>
<action name="actionLock">
@ -886,11 +876,6 @@
<string>Save As...</string>
</property>
</action>
<action name="actionTmp">
<property name="text">
<string>Tmp</string>
</property>
</action>
<action name="actionGraph">
<property name="checkable">
<bool>true</bool>