MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / droppedURLs

Method droppedURLs

launcher/ui/MainWindow.cpp:1797–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1795}
1796
1797void MainWindow::droppedURLs(QList<QUrl> urls)
1798{
1799 for(auto & url:urls)
1800 {
1801 if(url.isLocalFile())
1802 {
1803 addInstance(url.toLocalFile());
1804 }
1805 else
1806 {
1807 addInstance(url.toString());
1808 }
1809 // Only process one dropped file...
1810 break;
1811 }
1812}
1813
1814void MainWindow::on_actionREDDIT_triggered()
1815{

Callers 2

messageReceivedMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected