MCPcopy Create free account
hub / github.com/comaps/comaps / OnUploadEditsMenuItem

Method OnUploadEditsMenuItem

qt/mainwindow.cpp:629–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void MainWindow::OnUploadEditsMenuItem()
630{
631 std::string token;
632 if (!settings::Get(kOauthTokenSetting, token) || token.empty())
633 {
634 OnLoginMenuItem();
635 }
636 else
637 {
638 auto & editor = osm::Editor::Instance();
639 if (editor.HaveMapEditsOrNotesToUpload())
640 editor.UploadChanges(token, {{"created_by", "CoMaps " OMIM_OS_NAME}});
641 }
642}
643
644void MainWindow::OnBeforeEngineCreation()
645{

Callers

nothing calls this directly

Calls 4

GetFunction · 0.85
UploadChangesMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected