1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix erase shortcut

This commit is contained in:
nordsoft 2023-03-06 00:54:52 +04:00 committed by Nordsoft91
parent c8afef3408
commit 1451614cf2
2 changed files with 3 additions and 1 deletions

View File

@ -156,6 +156,8 @@ MainWindow::MainWindow(QWidget* parent) :
QDir::addSearchPath("icons", pathToQString(string / "mapeditor" / "icons")); QDir::addSearchPath("icons", pathToQString(string / "mapeditor" / "icons"));
QDir::addSearchPath("icons", pathToQString(VCMIDirs::get().userDataPath() / "mapeditor" / "icons")); QDir::addSearchPath("icons", pathToQString(VCMIDirs::get().userDataPath() / "mapeditor" / "icons"));
new QShortcut(QKeySequence("Backspace"), this, SLOT(on_actionErase_triggered()));
ExtractionOptions extractionOptions; ExtractionOptions extractionOptions;
parseCommandLine(extractionOptions); parseCommandLine(extractionOptions);

View File

@ -1096,7 +1096,7 @@
<string>Erase</string> <string>Erase</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string notr="true">Backspace, Del</string> <string notr="true">Del</string>
</property> </property>
</action> </action>
<action name="actionNeutral"> <action name="actionNeutral">