Skip to content

Commit a8cf276

Browse files
Merge pull request #87 from NekoSilverFox/MengJianing
Update Shortcuts
2 parents 9202571 + afb9ff1 commit a8cf276

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

PolyChatApp/chatboxwidget.ui

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
</size>
151151
</property>
152152
<property name="shortcut">
153-
<string>Ctrl+C</string>
153+
<string>Ctrl+B</string>
154154
</property>
155155
<property name="checkable">
156156
<bool>true</bool>
@@ -270,6 +270,9 @@
270270
<height>20</height>
271271
</size>
272272
</property>
273+
<property name="shortcut">
274+
<string>Ctrl+Shift+C</string>
275+
</property>
273276
</widget>
274277
</item>
275278
</layout>
@@ -327,6 +330,9 @@
327330
<property name="text">
328331
<string>Exit</string>
329332
</property>
333+
<property name="shortcut">
334+
<string>Ctrl+Shift+Esc</string>
335+
</property>
330336
</widget>
331337
</item>
332338
<item>

PolyChatApp/uil_chatboxwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ChatBoxWidget::ChatBoxWidget(QWidget* parent, QString name, qint16 port)
118118
QString path = QFileDialog::getSaveFileName(this, "Save file", "PolyChat-MsgLog", "(*.txt)");
119119
if (path.isEmpty())
120120
{
121-
QMessageBox::warning(this, "Warning", "Path can not be empty");
121+
QMessageBox::warning(this, "Warning", "Save cancel");
122122
return;
123123
}
124124

0 commit comments

Comments
 (0)