mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Enable the workaround for & characters in titles on all platforms
It wasn't just happening on Windows, but on OSX too. Untested on others, but wouldn't be suprising if it was on all platforms.
This commit is contained in:
@@ -236,14 +236,14 @@ void MainWindow::init()
|
||||
ui->actionEncryption->setVisible(false);
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
// On Windows remove all the & signs from the dock titles. Windows (or Qt on Windows) doesn't seem
|
||||
// to support them properly, so they end up being visible instead of creating a keyboard shortcut.
|
||||
/* Remove all the '&' signs from the dock titles. On at least Windows and
|
||||
* OSX, Qt doesn't seem to support them properly, so they end up being
|
||||
* visible instead of creating a keyboard shortcut
|
||||
*/
|
||||
ui->dockEdit->setWindowTitle(ui->dockEdit->windowTitle().remove('&'));
|
||||
ui->dockLog->setWindowTitle(ui->dockLog->windowTitle().remove('&'));
|
||||
ui->dockPlot->setWindowTitle(ui->dockPlot->windowTitle().remove('&'));
|
||||
ui->dockSchema->setWindowTitle(ui->dockSchema->windowTitle().remove('&'));
|
||||
#endif
|
||||
}
|
||||
|
||||
bool MainWindow::fileOpen(const QString& fileName, bool dontAddToRecentFiles)
|
||||
|
||||
Reference in New Issue
Block a user