[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars] kstars/ekos: Use KStandardGuiItem::overwrite()
From: Pino Toscano <pino () kde ! org>
Date: 2016-12-04 9:59:53
Message-ID: E1cDTaL-00006H-KR () code ! kde ! org
[Download RAW message or body]
Git commit 4b3704cc8ac87b672b81bd3679b9e0f071651662 by Pino Toscano.
Committed on 04/12/2016 at 09:59.
Pushed by pino into branch 'master'.
Use KStandardGuiItem::overwrite()
... instead of creating the KGuiItem from scratch
M +1 -1 kstars/ekos/capture/capture.cpp
M +1 -1 kstars/ekos/scheduler/scheduler.cpp
https://commits.kde.org/kstars/4b3704cc8ac87b672b81bd3679b9e0f071651662
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index 2201a66..5eef0ca 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -2492,7 +2492,7 @@ void Capture::saveSequenceQueue()
i18n( "A file named \"%1\" already exists. "
"Overwrite it?", sequenceURL.fileName() ),
i18n( "Overwrite File?" ),
- KGuiItem(i18n( "&Overwrite" )) );
+ KStandardGuiItem::overwrite() );
if(r==KMessageBox::Cancel) return;
}
}
diff --git a/kstars/ekos/scheduler/scheduler.cpp b/kstars/ekos/scheduler/scheduler.cpp
index 3b1f9b5..ca94aea 100644
--- a/kstars/ekos/scheduler/scheduler.cpp
+++ b/kstars/ekos/scheduler/scheduler.cpp
@@ -3450,7 +3450,7 @@ void Scheduler::save()
i18n( "A file named \"%1\" already exists. "
"Overwrite it?", schedulerURL.fileName() ),
i18n( "Overwrite File?" ),
- KGuiItem(i18n( "&Overwrite" )) );
+ KStandardGuiItem::overwrite() );
if(r==KMessageBox::Cancel) return;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic