Можно просто
```
mbox.exec ();

if (mbox.clickedButton () == &dropboxShareLink)
    ...
else if (mbox.clickedButton () == &dropboxPreviewLink)
    ...
```