mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Qt ISODate in screenshot filename has bad colon characters on windows
This commit is contained in:
parent
cdec714156
commit
df88beb45f
@ -876,7 +876,7 @@ void MainWindow::DelayedScreenshot()
|
|||||||
dir.mkdir(a);
|
dir.mkdir(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
a+="/screenshot-"+QDateTime::currentDateTime().toString(Qt::ISODate)+".png";
|
a+="/screenshot-"+QDateTime::currentDateTime().toString("yyyyMMdd-hhmmss")+".png";
|
||||||
|
|
||||||
qDebug() << "Saving screenshot to" << a;
|
qDebug() << "Saving screenshot to" << a;
|
||||||
if (!pixmap.save(a)) {
|
if (!pixmap.save(a)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user