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(); core->seekNext();
} }
void MainWindow::on_actionUndoSeek_triggered()
{
core->seekPrev();
}
void MainWindow::on_actionRedoSeek_triggered()
{
core->seekNext();
}
void MainWindow::on_actionDisasAdd_comment_triggered() void MainWindow::on_actionDisasAdd_comment_triggered()
{ {
CommentsDialog c(this); CommentsDialog c(this);

View File

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

View File

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