History

Fix goTo* dialog bug with chat on Mac OSX

If chat was open, when pressing enter on Mac OSX the operation would not go through and would focus on the chat window. There seems to be a deeper issue, but it was decided to go with the simple solution of making these dialog windows not of `Sheet` type.

Ryan Huffman committed 12 years ago

Commit df6bbd21 parent 3acbaa71 file · +0 −4Browse files

Showing the changes to interface/src/Menu.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Menu.cpp+0−4
@@ -1000,7 +1000,6 @@ void Menu::goToDomainDialog() { · 999 unmodified lines
10001000 domainDialog.setWindowTitle("Go to Domain");
10011001 domainDialog.setLabelText("Domain server:");
10021002 domainDialog.setTextValue(currentDomainHostname);
1003− domainDialog.setWindowFlags(Qt::Sheet);
10041003 domainDialog.resize(domainDialog.parentWidget()->size().width() * DIALOG_RATIO_OF_WINDOW, domainDialog.size().height());
10051004
10061005 int dialogReturn = domainDialog.exec();
@@ -1038,7 +1037,6 @@ void Menu::goTo() { · 31 unmodified lines
10381037 QString destination = QString();
10391038
10401039 gotoDialog.setTextValue(destination);
1041− gotoDialog.setWindowFlags(Qt::Sheet);
10421040 gotoDialog.resize(gotoDialog.parentWidget()->size().width() * DIALOG_RATIO_OF_WINDOW, gotoDialog.size().height());
10431041
10441042 int dialogReturn = gotoDialog.exec();
@@ -1154,7 +1152,6 @@ void Menu::goToLocation() { · 109 unmodified lines
11541152 coordinateDialog.setWindowTitle("Go to Location");
11551153 coordinateDialog.setLabelText("Coordinate as x,y,z:");
11561154 coordinateDialog.setTextValue(currentLocation);
1157− coordinateDialog.setWindowFlags(Qt::Sheet);
11581155 coordinateDialog.resize(coordinateDialog.parentWidget()->size().width() * 0.30, coordinateDialog.size().height());
11591156
11601157 int dialogReturn = coordinateDialog.exec();
@@ -1208,7 +1205,6 @@ void Menu::nameLocation() { · 47 unmodified lines
12081205 "(wherever you are standing and looking now) as you.\n\n"
12091206 "Location name:");
12101207
1211− nameDialog.setWindowFlags(Qt::Sheet);
12121208 nameDialog.resize((int) (nameDialog.parentWidget()->size().width() * 0.30), nameDialog.size().height());
12131209
12141210 if (nameDialog.exec() == QDialog::Accepted) {