nordsoft пре 2 година
родитељ
комит
1451614cf2
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      mapeditor/mainwindow.cpp
  2. 1 1
      mapeditor/mainwindow.ui

+ 2 - 0
mapeditor/mainwindow.cpp

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

+ 1 - 1
mapeditor/mainwindow.ui

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