Mercurial > minori
comparison src/gui/window.cc @ 228:d030b30526d5
config: remove unused username parameter from anilist auth
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 09 Jan 2024 08:05:36 -0500 |
parents | f784b5b1914c |
children | ff0061e75f0f |
comparison
equal
deleted
inserted
replaced
227:c4f03f83b252 | 228:d030b30526d5 |
---|---|
173 const QString folder = Strings::ToQString(path); | 173 const QString folder = Strings::ToQString(path); |
174 QAction* action = folder_menu->addAction(folder, [folder]{ | 174 QAction* action = folder_menu->addAction(folder, [folder]{ |
175 QDesktopServices::openUrl(QUrl::fromLocalFile(folder)); | 175 QDesktopServices::openUrl(QUrl::fromLocalFile(folder)); |
176 }); | 176 }); |
177 if (i < 9) | 177 if (i < 9) |
178 action->setShortcut(QKeySequence(Qt::ALT | (Qt::Key_1 + i++))); | 178 action->setShortcut(QKeySequence(Qt::ALT | static_cast<Qt::Modifier>(Qt::Key_1 + i))); |
179 else if (i == 9) | 179 else if (i == 9) |
180 action->setShortcut(QKeySequence(Qt::ALT | Qt::Key_0)); | 180 action->setShortcut(QKeySequence(Qt::ALT | Qt::Key_0)); |
181 /* don't bother with a shortcut in case of more... */ | |
182 i++; | |
181 } | 183 } |
182 | 184 |
183 folder_menu->addSeparator(); | 185 folder_menu->addSeparator(); |
184 | 186 |
185 { | 187 { |