History

Removed vsync slot from menu

Atlante45 committed 11 years ago

Commit fdce0ba1 parent bac448a4 files · +5 −10Browse files

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

Unified · Split

interface/src/Menu.cpp+2−5
@@ -353,7 +353,8 @@ Menu::Menu() { · 352 unmodified lines
353353
354354 #if defined(Q_OS_MAC)
355355 #else
356− addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::RenderTargetFramerateVSyncOn, 0, true, this, SLOT(changeVSync()));
356+ addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::RenderTargetFramerateVSyncOn, 0, true,
357+ qApp, SLOT(changeVSync()));
357358 #endif
358359 }
359360
@@ -1154,10 +1155,6 @@ void Menu::copyPath() { · 794 unmodified lines
11541155 clipboard->setText(path);
11551156 }
11561157
1157−void Menu::changeVSync() {
1158− Application::getInstance()->setVSyncEnabled(isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn));
1159−}
1160−
11611158 void Menu::displayNameLocationResponse(const QString& errorString) {
11621159
11631160 if (!errorString.isEmpty()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t