mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Optimize loading of skips when there are no skips in the view.
This commit is contained in:
@@ -198,11 +198,14 @@ void SeerSkipBrowserWidget::handleSaveToolButton () {
|
||||
|
||||
void SeerSkipBrowserWidget::handleLoadToolButton () {
|
||||
|
||||
int result = QMessageBox::warning(this, "Seer",
|
||||
QString("Load the previously saved skips from settings?\n\nThe existing skips in the view will be deleted first."),
|
||||
QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Cancel);
|
||||
// Warn only if there are existing skips in the view.
|
||||
if (skipTreeWidget->topLevelItemCount() > 0) {
|
||||
int result = QMessageBox::warning(this, "Seer",
|
||||
QString("Load the previously saved skips from settings?\n\nThe existing skips in the view will be deleted first."),
|
||||
QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Cancel);
|
||||
|
||||
if (result == QMessageBox::Cancel) return;
|
||||
if (result == QMessageBox::Cancel) return;
|
||||
}
|
||||
|
||||
QSettings settings;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user